diff options
author | jsing <> | 2015-09-11 17:04:39 +0000 |
---|---|---|
committer | jsing <> | 2015-09-11 17:04:39 +0000 |
commit | 092f44aa56f8d509a14a8c833848ff7292966c2e (patch) | |
tree | 0e8d555041942ad9b4e0e874c29c33bf35108582 | |
parent | d6a17a33bad1b73601de3cd3d861235bb94095e4 (diff) | |
download | openbsd-092f44aa56f8d509a14a8c833848ff7292966c2e.tar.gz openbsd-092f44aa56f8d509a14a8c833848ff7292966c2e.tar.bz2 openbsd-092f44aa56f8d509a14a8c833848ff7292966c2e.zip |
Nuke ssl3_final_finish_mac().
ok "flensing knife"
-rw-r--r-- | src/lib/libssl/src/ssl/s3_enc.c | 17 | ||||
-rw-r--r-- | src/lib/libssl/src/ssl/ssl_locl.h | 4 | ||||
-rw-r--r-- | src/lib/libssl/ssl_locl.h | 4 |
3 files changed, 3 insertions, 22 deletions
diff --git a/src/lib/libssl/src/ssl/s3_enc.c b/src/lib/libssl/src/ssl/s3_enc.c index 14c29e4edd..2b0b923d30 100644 --- a/src/lib/libssl/src/ssl/s3_enc.c +++ b/src/lib/libssl/src/ssl/s3_enc.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: s3_enc.c,v 1.67 2015/09/11 17:03:03 jsing Exp $ */ | 1 | /* $OpenBSD: s3_enc.c,v 1.68 2015/09/11 17:04:39 jsing Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -280,21 +280,6 @@ ssl3_cert_verify_mac(SSL *s, int md_nid, unsigned char *p) | |||
280 | return (ssl3_handshake_mac(s, md_nid, NULL, 0, p)); | 280 | return (ssl3_handshake_mac(s, md_nid, NULL, 0, p)); |
281 | } | 281 | } |
282 | 282 | ||
283 | int | ||
284 | ssl3_final_finish_mac(SSL *s, const char *sender, int len, unsigned char *p) | ||
285 | { | ||
286 | int ret_md5, ret_sha1; | ||
287 | |||
288 | ret_md5 = ssl3_handshake_mac(s, NID_md5, sender, len, p); | ||
289 | if (ret_md5 == 0) | ||
290 | return 0; | ||
291 | p += ret_md5; | ||
292 | ret_sha1 = ssl3_handshake_mac(s, NID_sha1, sender, len, p); | ||
293 | if (ret_sha1 == 0) | ||
294 | return 0; | ||
295 | return (ret_md5 + ret_sha1); | ||
296 | } | ||
297 | |||
298 | static int | 283 | static int |
299 | ssl3_handshake_mac(SSL *s, int md_nid, const char *sender, int len, | 284 | ssl3_handshake_mac(SSL *s, int md_nid, const char *sender, int len, |
300 | unsigned char *p) | 285 | unsigned char *p) |
diff --git a/src/lib/libssl/src/ssl/ssl_locl.h b/src/lib/libssl/src/ssl/ssl_locl.h index e4c6c45196..d4924cdab8 100644 --- a/src/lib/libssl/src/ssl/ssl_locl.h +++ b/src/lib/libssl/src/ssl/ssl_locl.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl_locl.h,v 1.110 2015/09/11 17:03:03 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_locl.h,v 1.111 2015/09/11 17:04:39 jsing Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -621,8 +621,6 @@ int ssl3_renegotiate_check(SSL *ssl); | |||
621 | int ssl3_dispatch_alert(SSL *s); | 621 | int ssl3_dispatch_alert(SSL *s); |
622 | int ssl3_read_bytes(SSL *s, int type, unsigned char *buf, int len, int peek); | 622 | int ssl3_read_bytes(SSL *s, int type, unsigned char *buf, int len, int peek); |
623 | int ssl3_write_bytes(SSL *s, int type, const void *buf, int len); | 623 | int ssl3_write_bytes(SSL *s, int type, const void *buf, int len); |
624 | int ssl3_final_finish_mac(SSL *s, const char *sender, int slen, | ||
625 | unsigned char *p); | ||
626 | int ssl3_cert_verify_mac(SSL *s, int md_nid, unsigned char *p); | 624 | int ssl3_cert_verify_mac(SSL *s, int md_nid, unsigned char *p); |
627 | void ssl3_finish_mac(SSL *s, const unsigned char *buf, int len); | 625 | void ssl3_finish_mac(SSL *s, const unsigned char *buf, int len); |
628 | void ssl3_free_digest_list(SSL *s); | 626 | void ssl3_free_digest_list(SSL *s); |
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h index e4c6c45196..d4924cdab8 100644 --- a/src/lib/libssl/ssl_locl.h +++ b/src/lib/libssl/ssl_locl.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl_locl.h,v 1.110 2015/09/11 17:03:03 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_locl.h,v 1.111 2015/09/11 17:04:39 jsing Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -621,8 +621,6 @@ int ssl3_renegotiate_check(SSL *ssl); | |||
621 | int ssl3_dispatch_alert(SSL *s); | 621 | int ssl3_dispatch_alert(SSL *s); |
622 | int ssl3_read_bytes(SSL *s, int type, unsigned char *buf, int len, int peek); | 622 | int ssl3_read_bytes(SSL *s, int type, unsigned char *buf, int len, int peek); |
623 | int ssl3_write_bytes(SSL *s, int type, const void *buf, int len); | 623 | int ssl3_write_bytes(SSL *s, int type, const void *buf, int len); |
624 | int ssl3_final_finish_mac(SSL *s, const char *sender, int slen, | ||
625 | unsigned char *p); | ||
626 | int ssl3_cert_verify_mac(SSL *s, int md_nid, unsigned char *p); | 624 | int ssl3_cert_verify_mac(SSL *s, int md_nid, unsigned char *p); |
627 | void ssl3_finish_mac(SSL *s, const unsigned char *buf, int len); | 625 | void ssl3_finish_mac(SSL *s, const unsigned char *buf, int len); |
628 | void ssl3_free_digest_list(SSL *s); | 626 | void ssl3_free_digest_list(SSL *s); |