projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f56412e
)
Use memset() instead of bzero().
author
Richard Levitte
<levitte@openssl.org>
Fri, 16 Nov 2001 23:31:07 +0000
(23:31 +0000)
committer
Richard Levitte
<levitte@openssl.org>
Fri, 16 Nov 2001 23:31:07 +0000
(23:31 +0000)
crypto/engine/hw_ubsec.c
patch
|
blob
|
history
diff --git
a/crypto/engine/hw_ubsec.c
b/crypto/engine/hw_ubsec.c
index 80a3c3cca96dbc65d97454fc6de5488c2d11f8a7..0f7e08c5cb114455bf0d213055862003f4ea0107 100644
(file)
--- a/
crypto/engine/hw_ubsec.c
+++ b/
crypto/engine/hw_ubsec.c
@@
-59,6
+59,7
@@
*/
#include <stdio.h>
+#include <string.h>
#include <openssl/crypto.h>
#include "cryptlib.h"
#include <openssl/dso.h>
@@
-509,7
+510,7
@@
static int ubsec_mod_exp(BIGNUM *r, BIGNUM *a, const BIGNUM *p,
ENGINEerr(ENGINE_F_UBSEC_MOD_EXP, ENGINE_R_BN_EXPAND_FAIL);
goto err;
}
-
bzero(r->d
, BN_num_bytes(m));
+
memset(r->d, 0
, BN_num_bytes(m));
if ((fd = p_UBSEC_ubsec_open(UBSEC_KEY_DEVICE_NAME)) <= 0)
{