diff options
| author | jsing <> | 2016-12-03 12:34:35 +0000 |
|---|---|---|
| committer | jsing <> | 2016-12-03 12:34:35 +0000 |
| commit | 578440178487a164eba874e7a566a55de4a9e2e8 (patch) | |
| tree | 8ef275a8ac5312337c385a03eb510a3b70e33eaa /src/lib/libssl/s3_srvr.c | |
| parent | d5a54e12564ecf0e373a69d1f6204f8ff522d984 (diff) | |
| download | openbsd-578440178487a164eba874e7a566a55de4a9e2e8.tar.gz openbsd-578440178487a164eba874e7a566a55de4a9e2e8.tar.bz2 openbsd-578440178487a164eba874e7a566a55de4a9e2e8.zip | |
Avoid signed vs unsigned warnings from clang by adding two casts,
slightly rewriting some code and changing the type of an array.
ok bcook@ doug@
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libssl/s3_srvr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libssl/s3_srvr.c b/src/lib/libssl/s3_srvr.c index e0d16e5cf2..0873437fcb 100644 --- a/src/lib/libssl/s3_srvr.c +++ b/src/lib/libssl/s3_srvr.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: s3_srvr.c,v 1.133 2016/11/17 15:22:41 jsing Exp $ */ | 1 | /* $OpenBSD: s3_srvr.c,v 1.134 2016/12/03 12:34:35 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 | * |
| @@ -1632,7 +1632,7 @@ err: | |||
| 1632 | static int | 1632 | static int |
| 1633 | ssl3_get_client_kex_rsa(SSL *s, unsigned char *p, long n) | 1633 | ssl3_get_client_kex_rsa(SSL *s, unsigned char *p, long n) |
| 1634 | { | 1634 | { |
| 1635 | char fakekey[SSL_MAX_MASTER_KEY_LENGTH]; | 1635 | unsigned char fakekey[SSL_MAX_MASTER_KEY_LENGTH]; |
| 1636 | unsigned char *d; | 1636 | unsigned char *d; |
| 1637 | RSA *rsa = NULL; | 1637 | RSA *rsa = NULL; |
| 1638 | EVP_PKEY *pkey = NULL; | 1638 | EVP_PKEY *pkey = NULL; |
