Searched refs:pCertCtx (Results 1 – 2 of 2) sorted by relevance
/external/python/cpython2/Modules/ |
D | _ssl.c | 3781 parseKeyUsage(PCCERT_CONTEXT pCertCtx, DWORD flags) in parseKeyUsage() argument 3787 if (!CertGetEnhancedKeyUsage(pCertCtx, flags, NULL, &size)) { in parseKeyUsage() 3801 if (!CertGetEnhancedKeyUsage(pCertCtx, flags, usage, &size)) { in parseKeyUsage() 3851 PCCERT_CONTEXT pCertCtx = NULL; in PySSL_enum_certificates() local 3871 while (pCertCtx = CertEnumCertificatesInStore(hStore, pCertCtx)) { in PySSL_enum_certificates() 3872 cert = PyBytes_FromStringAndSize((const char*)pCertCtx->pbCertEncoded, in PySSL_enum_certificates() 3873 pCertCtx->cbCertEncoded); in PySSL_enum_certificates() 3878 if ((enc = certEncodingType(pCertCtx->dwCertEncodingType)) == NULL) { in PySSL_enum_certificates() 3882 keyusage = parseKeyUsage(pCertCtx, CERT_FIND_PROP_ONLY_ENHKEY_USAGE_FLAG); in PySSL_enum_certificates() 3885 keyusage = parseKeyUsage(pCertCtx, CERT_FIND_EXT_ONLY_ENHKEY_USAGE_FLAG); in PySSL_enum_certificates() [all …]
|
/external/python/cpython3/Modules/ |
D | _ssl.c | 5350 parseKeyUsage(PCCERT_CONTEXT pCertCtx, DWORD flags) in parseKeyUsage() argument 5356 if (!CertGetEnhancedKeyUsage(pCertCtx, flags, NULL, &size)) { in parseKeyUsage() 5370 if (!CertGetEnhancedKeyUsage(pCertCtx, flags, usage, &size)) { in parseKeyUsage() 5422 PCCERT_CONTEXT pCertCtx = NULL; in _ssl_enum_certificates_impl() local 5438 while (pCertCtx = CertEnumCertificatesInStore(hStore, pCertCtx)) { in _ssl_enum_certificates_impl() 5439 cert = PyBytes_FromStringAndSize((const char*)pCertCtx->pbCertEncoded, in _ssl_enum_certificates_impl() 5440 pCertCtx->cbCertEncoded); in _ssl_enum_certificates_impl() 5445 if ((enc = certEncodingType(pCertCtx->dwCertEncodingType)) == NULL) { in _ssl_enum_certificates_impl() 5449 keyusage = parseKeyUsage(pCertCtx, CERT_FIND_PROP_ONLY_ENHKEY_USAGE_FLAG); in _ssl_enum_certificates_impl() 5452 keyusage = parseKeyUsage(pCertCtx, CERT_FIND_EXT_ONLY_ENHKEY_USAGE_FLAG); in _ssl_enum_certificates_impl() [all …]
|