Did I find the right examples for you? yes no

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/c/l/cloudbase-init-HEAD/cloudbaseinit/utils/windows/x509.py   cloudbase-init(Download)
            subject_encoded_len = wintypes.DWORD()
 
            if not cryptoapi.CertStrToName(cryptoapi.X509_ASN_ENCODING,
                                           subject,
                                           cryptoapi.CERT_X500_NAME_STR, None,
                                          ctypes.POINTER(wintypes.BYTE))
 
            if not cryptoapi.CertStrToName(cryptoapi.X509_ASN_ENCODING,
                                           subject,
                                           cryptoapi.CERT_X500_NAME_STR, None,
            if not cryptoapi.CertAddEncodedCertificateToStore(
                    store_handle,
                    cryptoapi.X509_ASN_ENCODING |
                    cryptoapi.PKCS_7_ASN_ENCODING,
                    cert_encoded, cert_encoded_len,

src/c/l/cloudbase-init-HEAD/cloudbaseinit/tests/utils/windows/test_x509.py   cloudbase-init(Download)
            mock_CertAddEncodedCertificateToStore.assert_called_with(
                mock_CertOpenStore(),
                cryptoapi.X509_ASN_ENCODING | cryptoapi.PKCS_7_ASN_ENCODING,
                mock_cast(), mock_DWORD(),
                cryptoapi.CERT_STORE_ADD_REPLACE_EXISTING, mock_byref())