\r
PCCERT_CONTEXT CardDAV::GetCertificateContextPointer(){\r
\r
+ // Check that the PCCERT_CONTEXT has an address\r
+ // other than NULL. Return nullptr if this is the\r
+ // case.\r
+\r
+ if (CertificateData == NULL){\r
+ return NULL;\r
+ }\r
+\r
// Get the certificate data.\r
\r
return CertificateData;\r
\r
CERT_CONTEXT CardDAV::GetCertificateContext(){\r
\r
+ // Check that the PCCERT_CONTEXT has an address\r
+ // other than NULL. Return nullptr if this is the\r
+ // case.\r
+\r
+ if (CertificateData == NULL){\r
+ CERT_CONTEXT EmptyCertificateData = { 0 };\r
+ return EmptyCertificateData;\r
+ }\r
+\r
// Get the certificate data.\r
\r
return *CertificateData;\r