diff options
author | jsing <> | 2017-01-26 06:32:58 +0000 |
---|---|---|
committer | jsing <> | 2017-01-26 06:32:58 +0000 |
commit | aa0037c390e8abacf9713cd2521b1b3f265af0e9 (patch) | |
tree | 09a483692ecb3d9b3259d70bca4f0473c356e0f5 /src/lib/libssl/d1_pkt.c | |
parent | 49b29010b73e2191c70fb3c541ef163c31dc59f6 (diff) | |
download | openbsd-aa0037c390e8abacf9713cd2521b1b3f265af0e9.tar.gz openbsd-aa0037c390e8abacf9713cd2521b1b3f265af0e9.tar.bz2 openbsd-aa0037c390e8abacf9713cd2521b1b3f265af0e9.zip |
Remove most of SSL3_ENC_METHOD - we can just inline the function calls
and defines since they are the same everywhere.
ok beck@
Diffstat (limited to 'src/lib/libssl/d1_pkt.c')
-rw-r--r-- | src/lib/libssl/d1_pkt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libssl/d1_pkt.c b/src/lib/libssl/d1_pkt.c index 19853d2375..3ea02700b5 100644 --- a/src/lib/libssl/d1_pkt.c +++ b/src/lib/libssl/d1_pkt.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: d1_pkt.c,v 1.59 2017/01/25 06:13:02 jsing Exp $ */ | 1 | /* $OpenBSD: d1_pkt.c,v 1.60 2017/01/26 06:32:58 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. |
@@ -417,7 +417,7 @@ dtls1_process_record(SSL *s) | |||
417 | mac = &rr->data[rr->length]; | 417 | mac = &rr->data[rr->length]; |
418 | } | 418 | } |
419 | 419 | ||
420 | i = s->method->internal->ssl3_enc->mac(s, md, 0 /* not send */); | 420 | i = tls1_mac(s, md, 0 /* not send */); |
421 | if (i < 0 || mac == NULL || timingsafe_memcmp(md, mac, (size_t)mac_size) != 0) | 421 | if (i < 0 || mac == NULL || timingsafe_memcmp(md, mac, (size_t)mac_size) != 0) |
422 | enc_err = -1; | 422 | enc_err = -1; |
423 | if (rr->length > SSL3_RT_MAX_COMPRESSED_LENGTH + mac_size) | 423 | if (rr->length > SSL3_RT_MAX_COMPRESSED_LENGTH + mac_size) |
@@ -1272,7 +1272,7 @@ do_dtls1_write(SSL *s, int type, const unsigned char *buf, unsigned int len) | |||
1272 | * wr->data still points in the wb->buf */ | 1272 | * wr->data still points in the wb->buf */ |
1273 | 1273 | ||
1274 | if (mac_size != 0) { | 1274 | if (mac_size != 0) { |
1275 | if (s->method->internal->ssl3_enc->mac(s, &(p[wr->length + bs]), 1) < 0) | 1275 | if (tls1_mac(s, &(p[wr->length + bs]), 1) < 0) |
1276 | goto err; | 1276 | goto err; |
1277 | wr->length += mac_size; | 1277 | wr->length += mac_size; |
1278 | } | 1278 | } |