/* * $Id$ * 'OpenSSL for Ruby' project * Copyright (C) 2001-2002 Michal Rokos * All rights reserved. */ /* * This program is licenced under the same licence as Ruby. * (See the file 'LICENCE'.) */ #if !defined(NO_HMAC) && !defined(OPENSSL_NO_HMAC) #include #include /* to hmac.[ch] */ int HMAC_CTX_copy(HMAC_CTX *out, HMAC_CTX *in) { if (in == NULL) { /* HMACerr(HMAC_CTX_COPY,HMAC_R_INPUT_NOT_INITIALIZED); */ return 0; } memcpy(out, in, sizeof(HMAC_CTX)); return 1; } #endif /* NO_HMAC */