projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace SHA-1 library with one that is clearly licensed.
[openvswitch]
/
vswitchd
/
bridge.c
diff --git
a/vswitchd/bridge.c
b/vswitchd/bridge.c
index ff418ab592ed4d817bab32ba471a5c23961b1267..0236f14cbffbac823a65dd1cbb1074997c451fd9 100644
(file)
--- a/
vswitchd/bridge.c
+++ b/
vswitchd/bridge.c
@@
-720,10
+720,10
@@
bridge_pick_datapath_id(struct bridge *br,
static uint64_t
dpid_from_hash(const void *data, size_t n)
{
static uint64_t
dpid_from_hash(const void *data, size_t n)
{
- uint8_t hash[SHA1
HashSize
];
+ uint8_t hash[SHA1
_DIGEST_SIZE
];
BUILD_ASSERT_DECL(sizeof hash >= ETH_ADDR_LEN);
BUILD_ASSERT_DECL(sizeof hash >= ETH_ADDR_LEN);
-
SHA1B
ytes(data, n, hash);
+
sha1_b
ytes(data, n, hash);
eth_addr_mark_random(hash);
return eth_addr_to_uint64(hash);
}
eth_addr_mark_random(hash);
return eth_addr_to_uint64(hash);
}