diff options
author | djm <> | 2012-10-13 21:23:57 +0000 |
---|---|---|
committer | djm <> | 2012-10-13 21:23:57 +0000 |
commit | 0f4e59be0458751f14ec603610fb285ff9737a1c (patch) | |
tree | 51d00d308f46148b4b341133936e44706703ad8b /src/lib/libcrypto/mdc2/mdc2dgst.c | |
parent | 050e39dc2dfd5d05183a7283530fcaf13f832ba2 (diff) | |
download | openbsd-0f4e59be0458751f14ec603610fb285ff9737a1c.tar.gz openbsd-0f4e59be0458751f14ec603610fb285ff9737a1c.tar.bz2 openbsd-0f4e59be0458751f14ec603610fb285ff9737a1c.zip |
import OpenSSL-1.0.1c
Diffstat (limited to 'src/lib/libcrypto/mdc2/mdc2dgst.c')
-rw-r--r-- | src/lib/libcrypto/mdc2/mdc2dgst.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libcrypto/mdc2/mdc2dgst.c b/src/lib/libcrypto/mdc2/mdc2dgst.c index 4aa406edc3..b74bb1a759 100644 --- a/src/lib/libcrypto/mdc2/mdc2dgst.c +++ b/src/lib/libcrypto/mdc2/mdc2dgst.c | |||
@@ -61,6 +61,7 @@ | |||
61 | #include <string.h> | 61 | #include <string.h> |
62 | #include <openssl/des.h> | 62 | #include <openssl/des.h> |
63 | #include <openssl/mdc2.h> | 63 | #include <openssl/mdc2.h> |
64 | #include <openssl/crypto.h> | ||
64 | 65 | ||
65 | #undef c2l | 66 | #undef c2l |
66 | #define c2l(c,l) (l =((DES_LONG)(*((c)++))) , \ | 67 | #define c2l(c,l) (l =((DES_LONG)(*((c)++))) , \ |
@@ -75,7 +76,7 @@ | |||
75 | *((c)++)=(unsigned char)(((l)>>24L)&0xff)) | 76 | *((c)++)=(unsigned char)(((l)>>24L)&0xff)) |
76 | 77 | ||
77 | static void mdc2_body(MDC2_CTX *c, const unsigned char *in, size_t len); | 78 | static void mdc2_body(MDC2_CTX *c, const unsigned char *in, size_t len); |
78 | int MDC2_Init(MDC2_CTX *c) | 79 | fips_md_init(MDC2) |
79 | { | 80 | { |
80 | c->num=0; | 81 | c->num=0; |
81 | c->pad_type=1; | 82 | c->pad_type=1; |