diff options
author | Michal Rokos <m.rokos@sh.cvut.cz> | 2001-12-21 20:10:12 +0000 |
---|---|---|
committer | Michal Rokos <m.rokos@sh.cvut.cz> | 2001-12-21 20:10:12 +0000 |
commit | 91d3b685dcd805ced1453c551ad315eb3173eab1 (patch) | |
tree | c0ed09824800e654855d9224b9b9d398523b3f44 /openssl_missing.c | |
parent | b248d91eda8ce439e8d3565438c5ca9bc7c07e9d (diff) | |
download | ruby-openssl-history-91d3b685dcd805ced1453c551ad315eb3173eab1.tar.gz |
* Memory checking
Diffstat (limited to 'openssl_missing.c')
-rw-r--r-- | openssl_missing.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/openssl_missing.c b/openssl_missing.c index 577e1e0..41ff5fe 100644 --- a/openssl_missing.c +++ b/openssl_missing.c @@ -8,11 +8,12 @@ * This program is licenced under the same licence as Ruby. * (See the file 'LICENCE'.) */ +#ifndef NO_HMAC + #include <openssl/hmac.h> #include "openssl_missing.h" /* to hmac.[ch] */ -#ifndef NO_HMAC int HMAC_CTX_copy(HMAC_CTX *out, HMAC_CTX *in) { @@ -20,10 +21,10 @@ HMAC_CTX_copy(HMAC_CTX *out, HMAC_CTX *in) /* HMACerr(HMAC_CTX_COPY,HMAC_R_INPUT_NOT_INITIALIZED); */ return 0; } - memcpy(out, in, sizeof(HMAC_CTX)); return 1; } + #endif |