diff options
| author | jsing <> | 2014-08-24 14:36:46 +0000 |
|---|---|---|
| committer | jsing <> | 2014-08-24 14:36:46 +0000 |
| commit | 15b6cd2e31b46d6dc4ad006b9dea11a3ea306237 (patch) | |
| tree | f599b6e13899bf29a509aff654e05e7d7d92844d /src/lib/libssl/d1_srvr.c | |
| parent | 897ca9ae7357e14cbf35168bbb3b29a9bc852a9b (diff) | |
| download | openbsd-15b6cd2e31b46d6dc4ad006b9dea11a3ea306237.tar.gz openbsd-15b6cd2e31b46d6dc4ad006b9dea11a3ea306237.tar.bz2 openbsd-15b6cd2e31b46d6dc4ad006b9dea11a3ea306237.zip | |
Replace the remaining uses of ssl3_put_cipher_by_char() with s2n and a
ssl3_cipher_get_value() helper function, which returns the cipher suite
value for the given cipher.
ok miod@
Diffstat (limited to 'src/lib/libssl/d1_srvr.c')
| -rw-r--r-- | src/lib/libssl/d1_srvr.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/libssl/d1_srvr.c b/src/lib/libssl/d1_srvr.c index 9fdd025e2d..4532a07da5 100644 --- a/src/lib/libssl/d1_srvr.c +++ b/src/lib/libssl/d1_srvr.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: d1_srvr.c,v 1.36 2014/08/10 14:42:56 jsing Exp $ */ | 1 | /* $OpenBSD: d1_srvr.c,v 1.37 2014/08/24 14:36:45 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. |
| @@ -898,7 +898,6 @@ dtls1_send_server_hello(SSL *s) | |||
| 898 | { | 898 | { |
| 899 | unsigned char *buf; | 899 | unsigned char *buf; |
| 900 | unsigned char *p, *d; | 900 | unsigned char *p, *d; |
| 901 | int i; | ||
| 902 | unsigned int sl; | 901 | unsigned int sl; |
| 903 | unsigned long l; | 902 | unsigned long l; |
| 904 | 903 | ||
| @@ -940,8 +939,7 @@ dtls1_send_server_hello(SSL *s) | |||
| 940 | /* put the cipher */ | 939 | /* put the cipher */ |
| 941 | if (s->s3->tmp.new_cipher == NULL) | 940 | if (s->s3->tmp.new_cipher == NULL) |
| 942 | return -1; | 941 | return -1; |
| 943 | i = ssl3_put_cipher_by_char(s->s3->tmp.new_cipher, p); | 942 | s2n(ssl3_cipher_get_value(s->s3->tmp.new_cipher), p); |
| 944 | p += i; | ||
| 945 | 943 | ||
| 946 | /* put the compression method */ | 944 | /* put the compression method */ |
| 947 | *(p++) = 0; | 945 | *(p++) = 0; |
