summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjsing <>2015-09-11 17:04:39 +0000
committerjsing <>2015-09-11 17:04:39 +0000
commit092f44aa56f8d509a14a8c833848ff7292966c2e (patch)
tree0e8d555041942ad9b4e0e874c29c33bf35108582
parentd6a17a33bad1b73601de3cd3d861235bb94095e4 (diff)
downloadopenbsd-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.c17
-rw-r--r--src/lib/libssl/src/ssl/ssl_locl.h4
-rw-r--r--src/lib/libssl/ssl_locl.h4
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
283int
284ssl3_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
298static int 283static int
299ssl3_handshake_mac(SSL *s, int md_nid, const char *sender, int len, 284ssl3_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);
621int ssl3_dispatch_alert(SSL *s); 621int ssl3_dispatch_alert(SSL *s);
622int ssl3_read_bytes(SSL *s, int type, unsigned char *buf, int len, int peek); 622int ssl3_read_bytes(SSL *s, int type, unsigned char *buf, int len, int peek);
623int ssl3_write_bytes(SSL *s, int type, const void *buf, int len); 623int ssl3_write_bytes(SSL *s, int type, const void *buf, int len);
624int ssl3_final_finish_mac(SSL *s, const char *sender, int slen,
625 unsigned char *p);
626int ssl3_cert_verify_mac(SSL *s, int md_nid, unsigned char *p); 624int ssl3_cert_verify_mac(SSL *s, int md_nid, unsigned char *p);
627void ssl3_finish_mac(SSL *s, const unsigned char *buf, int len); 625void ssl3_finish_mac(SSL *s, const unsigned char *buf, int len);
628void ssl3_free_digest_list(SSL *s); 626void 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);
621int ssl3_dispatch_alert(SSL *s); 621int ssl3_dispatch_alert(SSL *s);
622int ssl3_read_bytes(SSL *s, int type, unsigned char *buf, int len, int peek); 622int ssl3_read_bytes(SSL *s, int type, unsigned char *buf, int len, int peek);
623int ssl3_write_bytes(SSL *s, int type, const void *buf, int len); 623int ssl3_write_bytes(SSL *s, int type, const void *buf, int len);
624int ssl3_final_finish_mac(SSL *s, const char *sender, int slen,
625 unsigned char *p);
626int ssl3_cert_verify_mac(SSL *s, int md_nid, unsigned char *p); 624int ssl3_cert_verify_mac(SSL *s, int md_nid, unsigned char *p);
627void ssl3_finish_mac(SSL *s, const unsigned char *buf, int len); 625void ssl3_finish_mac(SSL *s, const unsigned char *buf, int len);
628void ssl3_free_digest_list(SSL *s); 626void ssl3_free_digest_list(SSL *s);