mirror of
https://github.com/curl/curl.git
synced 2024-11-21 01:16:58 +08:00
OpenSSL/servercert: use correct buffer size, not size of pointer
Bug: http://curl.haxx.se/bug/view.cgi?id=3579286
This commit is contained in:
parent
a1be8e7f9b
commit
3f20303702
@ -2303,11 +2303,11 @@ static CURLcode servercert(struct connectdata *conn,
|
||||
infof(data, "\t subject: %s\n", buffer);
|
||||
|
||||
certdate = X509_get_notBefore(connssl->server_cert);
|
||||
asn1_output(certdate, buffer, sizeof(buffer));
|
||||
asn1_output(certdate, buffer, BUFSIZE);
|
||||
infof(data, "\t start date: %s\n", buffer);
|
||||
|
||||
certdate = X509_get_notAfter(connssl->server_cert);
|
||||
asn1_output(certdate, buffer, sizeof(buffer));
|
||||
asn1_output(certdate, buffer, BUFSIZE);
|
||||
infof(data, "\t expire date: %s\n", buffer);
|
||||
|
||||
if(data->set.ssl.verifyhost) {
|
||||
@ -2320,7 +2320,7 @@ static CURLcode servercert(struct connectdata *conn,
|
||||
}
|
||||
|
||||
rc = x509_name_oneline(X509_get_issuer_name(connssl->server_cert),
|
||||
buffer, sizeof(buffer));
|
||||
buffer, BUFSIZE);
|
||||
if(rc) {
|
||||
if(strict)
|
||||
failf(data, "SSL: couldn't get X509-issuer name!");
|
||||
|
Loading…
Reference in New Issue
Block a user