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/ssl_asn1.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/ssl_asn1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libssl/ssl_asn1.c b/src/lib/libssl/ssl_asn1.c index 02124da520..1b93886868 100644 --- a/src/lib/libssl/ssl_asn1.c +++ b/src/lib/libssl/ssl_asn1.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ssl_asn1.c,v 1.43 2016/11/05 19:59:01 miod Exp $ */ | 1 | /* $OpenBSD: ssl_asn1.c,v 1.44 2016/12/03 12:34:35 jsing Exp $ */ |
| 2 | 2 | ||
| 3 | /* | 3 | /* |
| 4 | * Copyright (c) 2016 Joel Sing <jsing@openbsd.org> | 4 | * Copyright (c) 2016 Joel Sing <jsing@openbsd.org> |
| @@ -158,7 +158,7 @@ i2d_SSL_SESSION(SSL_SESSION *s, unsigned char **pp) | |||
| 158 | goto err; | 158 | goto err; |
| 159 | if (!CBB_add_asn1(&hostname, &value, CBS_ASN1_OCTETSTRING)) | 159 | if (!CBB_add_asn1(&hostname, &value, CBS_ASN1_OCTETSTRING)) |
| 160 | goto err; | 160 | goto err; |
| 161 | if (!CBB_add_bytes(&value, s->tlsext_hostname, | 161 | if (!CBB_add_bytes(&value, (const uint8_t *)s->tlsext_hostname, |
| 162 | strlen(s->tlsext_hostname))) | 162 | strlen(s->tlsext_hostname))) |
| 163 | goto err; | 163 | goto err; |
| 164 | } | 164 | } |
