diff options
author | Richard Levitte <levitte@openssl.org> | 2006-01-04 13:02:43 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2006-01-04 13:02:43 +0100 |
commit | 8de5b7f54833435c4a3e281632871520cd5f1041 (patch) | |
tree | ad5763b8a3c7e78f321126329e509eb193d621fb /ssl/ssl_asn1.c | |
parent | In ASN1_parse() show tag value for ASN1 tags > 30. (diff) | |
download | openssl-8de5b7f54833435c4a3e281632871520cd5f1041.tar.xz openssl-8de5b7f54833435c4a3e281632871520cd5f1041.zip |
Fix signed/unsigned char clashes.
Diffstat (limited to 'ssl/ssl_asn1.c')
-rw-r--r-- | ssl/ssl_asn1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ssl/ssl_asn1.c b/ssl/ssl_asn1.c index e98a47fc9d..1ff31d4402 100644 --- a/ssl/ssl_asn1.c +++ b/ssl/ssl_asn1.c @@ -186,7 +186,7 @@ int i2d_SSL_SESSION(SSL_SESSION *in, unsigned char **pp) { a.tlsext_hostname.length=strlen(in->tlsext_hostname); a.tlsext_hostname.type=V_ASN1_OCTET_STRING; - a.tlsext_hostname.data=in->tlsext_hostname; + a.tlsext_hostname.data=(unsigned char *)in->tlsext_hostname; } #endif /* OPENSSL_NO_TLSEXT */ @@ -419,7 +419,7 @@ SSL_SESSION *d2i_SSL_SESSION(SSL_SESSION **a, const unsigned char **pp, M_ASN1_D2I_get_EXP_opt(osp,d2i_ASN1_OCTET_STRING,6); if (os.data) { - ret->tlsext_hostname = BUF_strndup(os.data, os.length); + ret->tlsext_hostname = BUF_strndup((char *)os.data, os.length); OPENSSL_free(os.data); os.data = NULL; os.length = 0; |