diff options
Diffstat (limited to 'usr/src/common/openssl/crypto/mdc2/mdc2_one.c')
| -rw-r--r-- | usr/src/common/openssl/crypto/mdc2/mdc2_one.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/src/common/openssl/crypto/mdc2/mdc2_one.c b/usr/src/common/openssl/crypto/mdc2/mdc2_one.c index 37f06c8d77..72647f67ed 100644 --- a/usr/src/common/openssl/crypto/mdc2/mdc2_one.c +++ b/usr/src/common/openssl/crypto/mdc2/mdc2_one.c @@ -60,13 +60,14 @@ #include "cryptlib.h" #include <openssl/mdc2.h> -unsigned char *MDC2(const unsigned char *d, unsigned long n, unsigned char *md) +unsigned char *MDC2(const unsigned char *d, size_t n, unsigned char *md) { MDC2_CTX c; static unsigned char m[MDC2_DIGEST_LENGTH]; if (md == NULL) md=m; - MDC2_Init(&c); + if (!MDC2_Init(&c)) + return NULL; MDC2_Update(&c,d,n); MDC2_Final(md,&c); OPENSSL_cleanse(&c,sizeof(c)); /* security consideration */ |
