+}\r
+\r
+#endif\r
+\r
+#if defined(__WIN32__)\r
+\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
+}\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
+\r
+}\r
+\r
+#endif
\ No newline at end of file