From bfb97489720013292a68e1a265390ff1f889d59c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Sun, 19 Oct 2008 07:55:05 +0000 Subject: [PATCH] add EVP_CIPH_RAND_KEY and typify ctrl git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23944 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hcrypto/evp.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/hcrypto/evp.h b/lib/hcrypto/evp.h index 928ebccda..4af13d54d 100644 --- a/lib/hcrypto/evp.h +++ b/lib/hcrypto/evp.h @@ -134,7 +134,8 @@ struct hc_CIPHER { #define EVP_CIPH_CBC_MODE 2 #define EVP_CIPH_MODE 0x7 -#define EVP_CIPH_ALWAYS_CALL_INIT 0x20 +#define EVP_CIPH_ALWAYS_CALL_INIT 0x020 +#define EVP_CIPH_RAND_KEY 0x200 int (*init)(EVP_CIPHER_CTX*,const unsigned char*,const unsigned char*,int); int (*do_cipher)(EVP_CIPHER_CTX *, unsigned char *, @@ -143,7 +144,7 @@ struct hc_CIPHER { int ctx_size; void *set_asn1_parameters; void *get_asn1_parameters; - void *ctrl; + int (*ctrl)(EVP_CIPHER_CTX *, int type, int arg, void *ptr); void *app_data; };