aboutsummaryrefslogtreecommitdiff
path: root/crypto/evp/e_rc2.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2006-05-15 18:35:13 +0000
committerDr. Stephen Henson <steve@openssl.org>2006-05-15 18:35:13 +0000
commit6d3a1eac3bce00445db2b195ee9a721ba547aecd (patch)
treee670e5a5569ae75f23a5335f201185ca07a65dd1 /crypto/evp/e_rc2.c
parentb8f702a0affa2087758230967b55df504a176774 (diff)
downloadopenssl-6d3a1eac3bce00445db2b195ee9a721ba547aecd.zip
openssl-6d3a1eac3bce00445db2b195ee9a721ba547aecd.tar.gz
openssl-6d3a1eac3bce00445db2b195ee9a721ba547aecd.tar.bz2
Add PRF preference ctrl to ciphers.
Diffstat (limited to 'crypto/evp/e_rc2.c')
-rw-r--r--crypto/evp/e_rc2.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/evp/e_rc2.c b/crypto/evp/e_rc2.c
index d37726f..4fd8c41 100644
--- a/crypto/evp/e_rc2.c
+++ b/crypto/evp/e_rc2.c
@@ -223,6 +223,11 @@ static int rc2_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr)
return 1;
}
return 0;
+#if PBE_PRF_TEST
+ case EVP_CTRL_PBE_PRF_NID:
+ *(int *)ptr = NID_hmacWithMD5;
+ return 1;
+#endif
default:
return -1;