summaryrefslogtreecommitdiff
path: root/src/lib/libssl/d1_both.c
diff options
context:
space:
mode:
authorjsing <>2018-09-05 16:58:59 +0000
committerjsing <>2018-09-05 16:58:59 +0000
commitde40edcfdbe61b35779d4d9d364860a212cf755a (patch)
tree3bf8afe97ce6a4beefaa158520450f94016312bf /src/lib/libssl/d1_both.c
parent3dd336e6ff4073ca34d5f248d90afd65c6e3f27f (diff)
downloadopenbsd-de40edcfdbe61b35779d4d9d364860a212cf755a.tar.gz
openbsd-de40edcfdbe61b35779d4d9d364860a212cf755a.tar.bz2
openbsd-de40edcfdbe61b35779d4d9d364860a212cf755a.zip
Use the newer/more sensible names for EVP_MD_CTX_* functions.
EVP_MD_CTX_create -> EVP_MD_CTX_new EVP_MD_CTX_destroy -> EVP_MD_CTX_free This should make the intent more obvious and reduce head scratching during code reviews. Raised by tb@
Diffstat (limited to 'src/lib/libssl/d1_both.c')
-rw-r--r--src/lib/libssl/d1_both.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libssl/d1_both.c b/src/lib/libssl/d1_both.c
index 0c436f1f31..95157630f5 100644
--- a/src/lib/libssl/d1_both.c
+++ b/src/lib/libssl/d1_both.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: d1_both.c,v 1.54 2018/08/30 16:56:16 jsing Exp $ */ 1/* $OpenBSD: d1_both.c,v 1.55 2018/09/05 16:58:59 jsing Exp $ */
2/* 2/*
3 * DTLS implementation written by Nagendra Modadugu 3 * DTLS implementation written by Nagendra Modadugu
4 * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. 4 * (nagendra@cs.stanford.edu) for the OpenSSL project 2005.
@@ -213,7 +213,7 @@ dtls1_hm_fragment_free(hm_fragment *frag)
213 if (frag->msg_header.is_ccs) { 213 if (frag->msg_header.is_ccs) {
214 EVP_CIPHER_CTX_free( 214 EVP_CIPHER_CTX_free(
215 frag->msg_header.saved_retransmit_state.enc_write_ctx); 215 frag->msg_header.saved_retransmit_state.enc_write_ctx);
216 EVP_MD_CTX_destroy( 216 EVP_MD_CTX_free(
217 frag->msg_header.saved_retransmit_state.write_hash); 217 frag->msg_header.saved_retransmit_state.write_hash);
218 } 218 }
219 free(frag->fragment); 219 free(frag->fragment);