aboutsummaryrefslogtreecommitdiffstats
path: root/openssl_missing.c
diff options
context:
space:
mode:
authorMichal Rokos <m.rokos@sh.cvut.cz>2001-12-21 20:10:12 +0000
committerMichal Rokos <m.rokos@sh.cvut.cz>2001-12-21 20:10:12 +0000
commit91d3b685dcd805ced1453c551ad315eb3173eab1 (patch)
treec0ed09824800e654855d9224b9b9d398523b3f44 /openssl_missing.c
parentb248d91eda8ce439e8d3565438c5ca9bc7c07e9d (diff)
downloadruby-openssl-history-91d3b685dcd805ced1453c551ad315eb3173eab1.tar.gz
* Memory checking
Diffstat (limited to 'openssl_missing.c')
-rw-r--r--openssl_missing.c5
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