Chromium Code Reviews| Index: net/cert/x509_util_nss.h |
| diff --git a/net/cert/x509_util_nss.h b/net/cert/x509_util_nss.h |
| index d0839c9cbf6028bf63d770efa3de81cd2647f875..401c45d660f8bbe5a170d88077552ebeee592deb 100644 |
| --- a/net/cert/x509_util_nss.h |
| +++ b/net/cert/x509_util_nss.h |
| @@ -39,12 +39,12 @@ void ParseDate(const SECItem* der_date, base::Time* result); |
| // Parses the serial number from |certificate|. |
| std::string ParseSerialNumber(const CERTCertificate* certificate); |
| -// Gets the dNSName and iPAddress name types from the subjectAltName |
| -// extension of |cert_handle|, storing them in |dns_names| and |
| -// |ip_addrs|, respectively. |
| -// If no subjectAltName is present, or no names of that type are |
| -// present, the relevant vectors are cleared. |
| -void GetSubjectAltName(CERTCertificate* cert_handle, |
| +// Gets the dNSName and iPAddress name fields from the subjectAltName |
| +// extension of |cert_handle|. |
| +// If |dns_names| is non-NULL, each dNSName will be stored in |*dns_names|. |
|
eroman
2017/03/21 21:09:54
(this is the style comment I was suggesting for th
|
| +// If |ip_addrs| is non-NULL, each iPAddress will be stored in |*ip_addrs|. |
| +// Returns true if any dNSName or iPAddress was present. |
| +bool GetSubjectAltName(CERTCertificate* cert_handle, |
| std::vector<std::string>* dns_names, |
| std::vector<std::string>* ip_addrs); |