Skip to content

Commit f6b6689

Browse files
author
Lauris Kaplinski
committed
Removed template magic from Certificate.cpp
1 parent cfa8a27 commit f6b6689

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cdoc/Certificate.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ Certificate::policies() const
8585
if(!cert)
8686
return list;
8787

88-
auto cp = make_unique_cast<CERTIFICATEPOLICIES_free>(X509_get_ext_d2i(
89-
cert.get(), NID_certificate_policies, nullptr, nullptr));
88+
auto p = static_cast<CERTIFICATEPOLICIES *>(X509_get_ext_d2i(cert.get(), NID_certificate_policies, nullptr, nullptr));
89+
auto cp = std::unique_ptr<CERTIFICATEPOLICIES,decltype(&CERTIFICATEPOLICIES_free)>(p,CERTIFICATEPOLICIES_free);
9090
if(!cp)
9191
return list;
9292

0 commit comments

Comments
 (0)