diff options
author | Viktor Dukhovni <ietf-dane@dukhovni.org> | 2014-07-07 19:11:38 +1000 |
---|---|---|
committer | Viktor Dukhovni <ietf-dane@dukhovni.org> | 2014-07-07 19:11:38 +1000 |
commit | 297c67fcd817ea643de2fdeff4e434b050d571e2 (patch) | |
tree | 5ff05ff3ed125e5091f9cb75a50c51bb5ff7c397 /crypto/x509/x509_lcl.h | |
parent | ee724df75d9ad67fd954253ac514fddb46f1e3c6 (diff) | |
download | openssl-297c67fcd817ea643de2fdeff4e434b050d571e2.zip openssl-297c67fcd817ea643de2fdeff4e434b050d571e2.tar.gz openssl-297c67fcd817ea643de2fdeff4e434b050d571e2.tar.bz2 |
Update API to use (char *) for email addresses and hostnames
Reduces number of silly casts in OpenSSL code and likely most
applications. Consistent with (char *) for "peername" value from
X509_check_host() and X509_VERIFY_PARAM_get0_peername().
Diffstat (limited to 'crypto/x509/x509_lcl.h')
-rw-r--r-- | crypto/x509/x509_lcl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/x509/x509_lcl.h b/crypto/x509/x509_lcl.h index 8350929..18611d5 100644 --- a/crypto/x509/x509_lcl.h +++ b/crypto/x509/x509_lcl.h @@ -63,7 +63,7 @@ struct X509_VERIFY_PARAM_ID_st STACK_OF(OPENSSL_STRING) *hosts; /* Set of acceptable names */ unsigned int hostflags; /* Flags to control matching features */ char *peername; /* Matching hostname in peer certificate */ - unsigned char *email; /* If not NULL email address to match */ + char *email; /* If not NULL email address to match */ size_t emaillen; unsigned char *ip; /* If not NULL IP address to match */ size_t iplen; /* Length of IP address */ |