diff options
Diffstat (limited to 'src/lib/libssl/t1_lib.c')
-rw-r--r-- | src/lib/libssl/t1_lib.c | 58 |
1 files changed, 1 insertions, 57 deletions
diff --git a/src/lib/libssl/t1_lib.c b/src/lib/libssl/t1_lib.c index eb1d96cc11..a9f10166fe 100644 --- a/src/lib/libssl/t1_lib.c +++ b/src/lib/libssl/t1_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t1_lib.c,v 1.135 2017/08/26 20:23:46 doug Exp $ */ | 1 | /* $OpenBSD: t1_lib.c,v 1.136 2017/08/27 02:58:04 doug 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 | * |
@@ -687,26 +687,6 @@ ssl_add_clienthello_tlsext(SSL *s, unsigned char *p, unsigned char *limit) | |||
687 | return NULL; | 687 | return NULL; |
688 | ret += len; | 688 | ret += len; |
689 | 689 | ||
690 | #ifndef OPENSSL_NO_SRTP | ||
691 | if (SSL_IS_DTLS(s) && SSL_get_srtp_profiles(s)) { | ||
692 | int el; | ||
693 | |||
694 | ssl_add_clienthello_use_srtp_ext(s, 0, &el, 0); | ||
695 | |||
696 | if ((size_t)(limit - ret) < 4 + el) | ||
697 | return NULL; | ||
698 | |||
699 | s2n(TLSEXT_TYPE_use_srtp, ret); | ||
700 | s2n(el, ret); | ||
701 | |||
702 | if (ssl_add_clienthello_use_srtp_ext(s, ret, &el, el)) { | ||
703 | SSLerror(s, ERR_R_INTERNAL_ERROR); | ||
704 | return NULL; | ||
705 | } | ||
706 | ret += el; | ||
707 | } | ||
708 | #endif | ||
709 | |||
710 | if ((extdatalen = ret - p - 2) == 0) | 690 | if ((extdatalen = ret - p - 2) == 0) |
711 | return p; | 691 | return p; |
712 | 692 | ||
@@ -745,26 +725,6 @@ ssl_add_serverhello_tlsext(SSL *s, unsigned char *p, unsigned char *limit) | |||
745 | * extension. | 725 | * extension. |
746 | */ | 726 | */ |
747 | 727 | ||
748 | #ifndef OPENSSL_NO_SRTP | ||
749 | if (SSL_IS_DTLS(s) && s->internal->srtp_profile) { | ||
750 | int el; | ||
751 | |||
752 | ssl_add_serverhello_use_srtp_ext(s, 0, &el, 0); | ||
753 | |||
754 | if ((size_t)(limit - ret) < 4 + el) | ||
755 | return NULL; | ||
756 | |||
757 | s2n(TLSEXT_TYPE_use_srtp, ret); | ||
758 | s2n(el, ret); | ||
759 | |||
760 | if (ssl_add_serverhello_use_srtp_ext(s, ret, &el, el)) { | ||
761 | SSLerror(s, ERR_R_INTERNAL_ERROR); | ||
762 | return NULL; | ||
763 | } | ||
764 | ret += el; | ||
765 | } | ||
766 | #endif | ||
767 | |||
768 | if ((extdatalen = ret - p - 2) == 0) | 728 | if ((extdatalen = ret - p - 2) == 0) |
769 | return p; | 729 | return p; |
770 | 730 | ||
@@ -815,14 +775,6 @@ ssl_parse_clienthello_tlsext(SSL *s, unsigned char **p, unsigned char *d, | |||
815 | if (!tlsext_clienthello_parse_one(s, &cbs, type, al)) | 775 | if (!tlsext_clienthello_parse_one(s, &cbs, type, al)) |
816 | return 0; | 776 | return 0; |
817 | 777 | ||
818 | /* session ticket processed earlier */ | ||
819 | #ifndef OPENSSL_NO_SRTP | ||
820 | else if (SSL_IS_DTLS(s) && type == TLSEXT_TYPE_use_srtp) { | ||
821 | if (ssl_parse_clienthello_use_srtp_ext(s, data, size, al)) | ||
822 | return 0; | ||
823 | } | ||
824 | #endif | ||
825 | |||
826 | data += size; | 778 | data += size; |
827 | } | 779 | } |
828 | 780 | ||
@@ -888,14 +840,6 @@ ssl_parse_serverhello_tlsext(SSL *s, unsigned char **p, size_t n, int *al) | |||
888 | if (!tlsext_serverhello_parse_one(s, &cbs, type, al)) | 840 | if (!tlsext_serverhello_parse_one(s, &cbs, type, al)) |
889 | return 0; | 841 | return 0; |
890 | 842 | ||
891 | #ifndef OPENSSL_NO_SRTP | ||
892 | else if (SSL_IS_DTLS(s) && type == TLSEXT_TYPE_use_srtp) { | ||
893 | if (ssl_parse_serverhello_use_srtp_ext(s, data, | ||
894 | size, al)) | ||
895 | return 0; | ||
896 | } | ||
897 | #endif | ||
898 | |||
899 | data += size; | 843 | data += size; |
900 | 844 | ||
901 | } | 845 | } |