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)
            if not cryptoapi.CertAddCertificateContextToStore(
                    store_handle, cert_context_p,
                    cryptoapi.CERT_STORE_ADD_REPLACE_EXISTING, None):
                raise cryptoapi.CryptoAPIException()
 
                    cryptoapi.PKCS_7_ASN_ENCODING,
                    cert_encoded, cert_encoded_len,
                    cryptoapi.CERT_STORE_ADD_REPLACE_EXISTING,
                    ctypes.byref(cert_context_p)):
                raise cryptoapi.CryptoAPIException()

src/c/l/cloudbase-init-HEAD/cloudbaseinit/tests/utils/windows/test_x509.py   cloudbase-init(Download)
                cryptoapi.X509_ASN_ENCODING | cryptoapi.PKCS_7_ASN_ENCODING,
                mock_cast(), mock_DWORD(),
                cryptoapi.CERT_STORE_ADD_REPLACE_EXISTING, mock_byref())
            mock_create_unicode_buffer.assert_called_with(2)
            self.assertEqual(mock_CertGetNameString.call_args_list, expected2)