diff options
author | Ben Laurie <ben@openssl.org> | 2001-12-09 22:53:31 +0100 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 2001-12-09 22:53:31 +0100 |
commit | ff3fa48fc79029d46f5285bdf9347b96f2262ce2 (patch) | |
tree | f74a1f8ddd6ecf86c7f217742f10dea32a3b89bb /ssl | |
parent | fix warnings (one of them was clearly justified) (diff) | |
download | openssl-ff3fa48fc79029d46f5285bdf9347b96f2262ce2.tar.xz openssl-ff3fa48fc79029d46f5285bdf9347b96f2262ce2.zip |
Improve back compatibility.
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/t1_enc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ssl/t1_enc.c b/ssl/t1_enc.c index 11cd1b6e82..0548533354 100644 --- a/ssl/t1_enc.c +++ b/ssl/t1_enc.c @@ -78,16 +78,16 @@ static void tls1_P_hash(const EVP_MD *md, const unsigned char *sec, HMAC_CTX_init(&ctx); HMAC_CTX_init(&ctx_tmp); - HMAC_Init(&ctx,sec,sec_len,md); - HMAC_Init(&ctx_tmp,sec,sec_len,md); + HMAC_Init_ex(&ctx,sec,sec_len,md); + HMAC_Init_ex(&ctx_tmp,sec,sec_len,md); HMAC_Update(&ctx,seed,seed_len); HMAC_Final(&ctx,A1,&A1_len); n=0; for (;;) { - HMAC_Init(&ctx,NULL,0,NULL); /* re-init */ - HMAC_Init(&ctx_tmp,NULL,0,NULL); /* re-init */ + HMAC_Init_ex(&ctx,NULL,0,NULL); /* re-init */ + HMAC_Init_ex(&ctx_tmp,NULL,0,NULL); /* re-init */ HMAC_Update(&ctx,A1,A1_len); HMAC_Update(&ctx_tmp,A1,A1_len); HMAC_Update(&ctx,seed,seed_len); @@ -652,7 +652,7 @@ int tls1_mac(SSL *ssl, unsigned char *md, int send) /* I should fix this up TLS TLS TLS TLS TLS XXXXXXXX */ HMAC_CTX_init(&hmac); - HMAC_Init(&hmac,mac_sec,EVP_MD_size(hash),hash); + HMAC_Init_ex(&hmac,mac_sec,EVP_MD_size(hash),hash); HMAC_Update(&hmac,seq,8); HMAC_Update(&hmac,buf,5); HMAC_Update(&hmac,rec->input,rec->length); |