diff options
Diffstat (limited to 'src/lib/libcrypto/evp/bio_ok.c')
-rw-r--r-- | src/lib/libcrypto/evp/bio_ok.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/evp/bio_ok.c b/src/lib/libcrypto/evp/bio_ok.c index 530ab937ce..d2be03be82 100644 --- a/src/lib/libcrypto/evp/bio_ok.c +++ b/src/lib/libcrypto/evp/bio_ok.c | |||
@@ -102,7 +102,7 @@ | |||
102 | 102 | ||
103 | *) digest is initialized with random seed instead of | 103 | *) digest is initialized with random seed instead of |
104 | standardized one. | 104 | standardized one. |
105 | *) same seed is written to ouput | 105 | *) same seed is written to output |
106 | *) well-known text is then hashed and the output | 106 | *) well-known text is then hashed and the output |
107 | of the digest is also written to output. | 107 | of the digest is also written to output. |
108 | 108 | ||
@@ -211,7 +211,7 @@ static int ok_free(BIO *a) | |||
211 | { | 211 | { |
212 | if (a == NULL) return(0); | 212 | if (a == NULL) return(0); |
213 | EVP_MD_CTX_cleanup(&((BIO_OK_CTX *)a->ptr)->md); | 213 | EVP_MD_CTX_cleanup(&((BIO_OK_CTX *)a->ptr)->md); |
214 | OPENSSL_cleanse(a->ptr,sizeof(BIO_OK_CTX)); | 214 | memset(a->ptr,0,sizeof(BIO_OK_CTX)); |
215 | OPENSSL_free(a->ptr); | 215 | OPENSSL_free(a->ptr); |
216 | a->ptr=NULL; | 216 | a->ptr=NULL; |
217 | a->init=0; | 217 | a->init=0; |