aboutsummaryrefslogtreecommitdiff
path: root/net/mstpd/patches
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2020-08-31 00:34:45 -0700
committerRosen Penev <rosenp@gmail.com>2020-08-31 01:12:14 -0700
commitecfe85ab28aca4d7e891770166e1c8c11ed385a2 (patch)
tree926595c935f8c5cca581a00c0427ac849e6ed999 /net/mstpd/patches
parent47363d1b629e03fb865b532b5e309944a0ce1c8d (diff)
mstpd: fix compilation with uClibc-ng
bcopy/bzero are no longer available. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'net/mstpd/patches')
-rw-r--r--net/mstpd/patches/010-bsd.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/net/mstpd/patches/010-bsd.patch b/net/mstpd/patches/010-bsd.patch
new file mode 100644
index 000000000..45ecb3f75
--- /dev/null
+++ b/net/mstpd/patches/010-bsd.patch
@@ -0,0 +1,17 @@
+--- a/hmac_md5.c
++++ b/hmac_md5.c
+@@ -356,10 +356,10 @@ caddr_t digest; /* caller digest to be filled in */
+ */
+
+ /* start out by storing key in pads */
+- bzero(k_ipad, sizeof k_ipad);
+- bzero(k_opad, sizeof k_opad);
+- bcopy(key, k_ipad, key_len);
+- bcopy( key, k_opad, key_len);
++ memset(k_ipad, 0, sizeof k_ipad);
++ memset(k_opad, 0, sizeof k_opad);
++ memcpy(k_ipad, key, key_len);
++ memcpy(k_opad, key, key_len);
+
+ /* XOR key with ipad and opad values */
+ for(i = 0; i < 64; ++i)