diff options
author | jsing <> | 2018-09-05 16:58:59 +0000 |
---|---|---|
committer | jsing <> | 2018-09-05 16:58:59 +0000 |
commit | 4e47c515f40e5440374f3cb833834c52edfd8b18 (patch) | |
tree | 3bf8afe97ce6a4beefaa158520450f94016312bf /src/lib/libssl/d1_both.c | |
parent | c67d138a999b0555285f0993584d8124abc2b926 (diff) | |
download | openbsd-4e47c515f40e5440374f3cb833834c52edfd8b18.tar.gz openbsd-4e47c515f40e5440374f3cb833834c52edfd8b18.tar.bz2 openbsd-4e47c515f40e5440374f3cb833834c52edfd8b18.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.c | 4 |
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); |