Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cdoc/Certificate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ std::string Certificate::getName(int NID) const
std::string cn;
if(!cert)
return cn;
X509_NAME *name = X509_get_subject_name(cert.get());
const X509_NAME *name = X509_get_subject_name(cert.get());
if(!name)
return cn;
int pos = X509_NAME_get_index_by_NID(name, NID, -1);
if(pos == -1)
return cn;
X509_NAME_ENTRY *e = X509_NAME_get_entry(name, pos);
const X509_NAME_ENTRY *e = X509_NAME_get_entry(name, pos);
if(!e)
return cn;
char *data = nullptr;
Expand Down