Home
last modified time | relevance | path

Searched refs:cert (Results 1 – 25 of 61) sorted by relevance

123

/reactos/modules/rostests/winetests/cryptnet/
H A Dcryptnet.c109 PCCERT_CONTEXT cert; in test_getObjectUrl() local
135 if (cert) in test_getObjectUrl()
177 if (cert) in test_getObjectUrl()
259 if (cert) in test_getObjectUrl()
361 ok(cert && cert != (PCCERT_CONTEXT)0xdeadbeef, "Expected a cert\n"); in test_retrieveObjectByUrl()
362 if (cert && cert != (PCCERT_CONTEXT)0xdeadbeef) in test_retrieveObjectByUrl()
392 cert = NULL; in test_retrieveObjectByUrl()
394 cert = CertEnumCertificatesInStore(store, cert); in test_retrieveObjectByUrl()
395 if (cert) in test_retrieveObjectByUrl()
406 if (cert && cert != (PCCERT_CONTEXT)0xdeadbeef) in test_retrieveObjectByUrl()
[all …]
/reactos/modules/rostests/winetests/crypt32/
H A Dcrl.c484 CertFreeCertificateContext(cert); in testFindCRL()
498 CRL_FIND_ISSUED_BY, cert, NULL); in testFindCRL()
502 CRL_FIND_ISSUED_BY, cert, NULL); in testFindCRL()
517 issuedForPara.pIssuerCert = cert; in testFindCRL()
543 issuedForPara.pIssuerCert = cert; in testFindCRL()
571 CertFreeCertificateContext(cert); in testFindCRL()
579 issuedForPara.pIssuerCert = cert; in testFindCRL()
598 CertFreeCertificateContext(cert); in testFindCRL()
786 PCCERT_CONTEXT cert; in testGetCRLFromStore() local
1102 PCCERT_CONTEXT cert; in testFindCertInCRL() local
[all …]
H A Dstore.c1685 cert = CertEnumCertificatesInStore(store, cert); in testFileNameStore()
1706 cert = CertEnumCertificatesInStore(store, cert); in testFileNameStore()
1727 cert = CertEnumCertificatesInStore(store, cert); in testFileNameStore()
1788 cert = CertEnumCertificatesInStore(store, cert); in testFileNameStore()
1809 cert = CertEnumCertificatesInStore(store, cert); in testFileNameStore()
1896 cert = CertEnumCertificatesInStore(store, cert); in testMessageStore()
1917 cert = CertEnumCertificatesInStore(store, cert); in testMessageStore()
1944 cert = CertEnumCertificatesInStore(store, cert); in testMessageStore()
2009 cert = CertEnumCertificatesInStore(store, cert); in testSerializedStore()
2028 cert = CertEnumCertificatesInStore(store, cert); in testSerializedStore()
[all …]
H A Dchain.c3889 PCCERT_CONTEXT cert; in testGetCertChain() local
3957 CertFreeCertificateContext(cert); in testGetCertChain()
3966 cert = CertCreateCertificateContext(X509_ASN_ENCODING, in testGetCertChain()
4018 CertFreeCertificateContext(cert); in testGetCertChain()
4091 CERT_STORE_ADD_ALWAYS, &cert); in testGetCertChain()
4175 CertFreeCertificateContext(cert); in testGetCertChain()
4182 PCCERT_CONTEXT cert; in test_CERT_CHAIN_PARA_cbSize() local
4197 CERT_STORE_ADD_ALWAYS, &cert); in test_CERT_CHAIN_PARA_cbSize()
4213 CertFreeCertificateContext(cert); in test_CERT_CHAIN_PARA_cbSize()
4859 PCCERT_CONTEXT cert; in testVerifyCertChainPolicy() local
[all …]
H A Dcert.c652 ok(!cert && in testCreateCert()
1885 LPBYTE cert = NULL; in testVerifyCertSig() local
1915 if (cert) in testVerifyCertSig()
1924 cert, size, NULL); in testVerifyCertSig()
1944 LocalFree(cert); in testVerifyCertSig()
1952 LPBYTE cert = NULL; in testVerifyCertSigEx() local
1990 if (cert) in testVerifyCertSigEx()
2010 certBlob.pbData = cert; in testVerifyCertSigEx()
2043 LocalFree(cert); in testVerifyCertSigEx()
3765 PCCERT_CONTEXT cert; in testAcquireCertPrivateKey() local
[all …]
/reactos/modules/rostests/winetests/advapi32/
H A Dcred.c402 memset( cert.rgbHashOfCert, 0, sizeof(cert.rgbHashOfCert) ); in test_CredMarshalCredentialA()
403 cert.cbSize = sizeof(cert); in test_CredMarshalCredentialA()
432 cert.cbSize = 0; in test_CredMarshalCredentialA()
441 cert.cbSize = sizeof(cert) + 4; in test_CredMarshalCredentialA()
449 cert.cbSize = sizeof(cert); in test_CredMarshalCredentialA()
485 memset( cert.rgbHashOfCert, 0, sizeof(cert.rgbHashOfCert) ); in test_CredMarshalCredentialA()
497 memset( cert.rgbHashOfCert, 0xff, sizeof(cert.rgbHashOfCert) ); in test_CredMarshalCredentialA()
632 cert = NULL; in test_CredUnmarshalCredentialA()
640 cert = NULL; in test_CredUnmarshalCredentialA()
675 cert = p; in test_CredUnmarshalCredentialA()
[all …]
/reactos/modules/rostests/winetests/cryptui/
H A Dcryptui.c549 cert = NULL; in test_crypt_ui_wiz_import()
551 cert = CertEnumCertificatesInStore(store, cert); in test_crypt_ui_wiz_import()
552 if (cert) in test_crypt_ui_wiz_import()
554 } while (cert); in test_crypt_ui_wiz_import()
585 cert = NULL; in test_crypt_ui_wiz_import()
587 cert = CertEnumCertificatesInStore(store, cert); in test_crypt_ui_wiz_import()
588 if (cert) in test_crypt_ui_wiz_import()
590 } while (cert); in test_crypt_ui_wiz_import()
625 cert = NULL; in test_crypt_ui_wiz_import()
627 cert = CertEnumCertificatesInStore(store, cert); in test_crypt_ui_wiz_import()
[all …]
/reactos/dll/win32/wintrust/
H A Dwintrust_main.c68 TRACE("%p\n", cert); in TrustIsCertificateSelfSigned()
70 cert->pCertInfo->cExtension, cert->pCertInfo->rgExtension))) in TrustIsCertificateSelfSigned()
130 cert->pCertInfo->cExtension, cert->pCertInfo->rgExtension))) in TrustIsCertificateSelfSigned()
145 &cert->pCertInfo->SerialNumber); in TrustIsCertificateSelfSigned()
175 &cert->pCertInfo->Subject, &cert->pCertInfo->Issuer); in TrustIsCertificateSelfSigned()
614 TRACE("%p\n", cert); in dump_cert_info()
615 if (cert) in dump_cert_info()
780 CRYPT_PROVIDER_CERT *cert; in WTHelperGetProvCertFromChain() local
786 cert = &pSgnr->pasCertChain[idxCert]; in WTHelperGetProvCertFromChain()
787 TRACE("returning %p\n", cert); in WTHelperGetProvCertFromChain()
[all …]
H A Dcrypt.c1051 WIN_CERTIFICATE cert; in WINTRUST_GetSignedMsgFromPEFile() local
1054 ret = ImageGetCertificateHeader(file, dwIndex, &cert); in WINTRUST_GetSignedMsgFromPEFile()
1057 switch (cert.wCertificateType) in WINTRUST_GetSignedMsgFromPEFile()
1061 *pcbSignedDataMsg = cert.dwLength; in WINTRUST_GetSignedMsgFromPEFile()
1122 WIN_CERTIFICATE *cert; in WINTRUST_PutSignedMsgToPEFile() local
1140 if(!cert) in WINTRUST_PutSignedMsgToPEFile()
1143 cert->dwLength = size; in WINTRUST_PutSignedMsgToPEFile()
1144 cert->wRevision = WIN_CERT_REVISION_2_0; in WINTRUST_PutSignedMsgToPEFile()
1145 cert->wCertificateType = WIN_CERT_TYPE_PKCS_SIGNED_DATA; in WINTRUST_PutSignedMsgToPEFile()
1147 ret = ImageAddCertificate(file, cert, pdwIndex); in WINTRUST_PutSignedMsgToPEFile()
[all …]
/reactos/dll/win32/crypt32/
H A Dchain.c73 PCCERT_CONTEXT cert) in CRYPT_FindCertInStore() argument
99 cert = CertEnumCertificatesInStore(store, cert); in CRYPT_CheckRestrictedRoot()
100 if (cert) in CRYPT_CheckRestrictedRoot()
108 if (cert) in CRYPT_CheckRestrictedRoot()
275 cert->pCertInfo->cExtension, cert->pCertInfo->rgExtension))) in CRYPT_IsCertificateSelfSigned()
330 cert->pCertInfo->cExtension, cert->pCertInfo->rgExtension))) in CRYPT_IsCertificateSelfSigned()
368 …if (CertCompareCertificateName(cert->dwCertEncodingType, &cert->pCertInfo->Subject, &cert->pCertIn… in CRYPT_IsCertificateSelfSigned()
518 cert->pCertInfo->cExtension, cert->pCertInfo->rgExtension); in CRYPT_DecodeBasicConstraints()
540 cert->pCertInfo->cExtension, cert->pCertInfo->rgExtension); in CRYPT_DecodeBasicConstraints()
960 cert->cExtension, cert->rgExtension); in get_subject_alt_name_ext()
[all …]
H A Dcert.c69 if (cert) in CertAddEncodedCertificateToStore()
130 cert_t *cert; in Cert_clone() local
134 if(!cert) in Cert_clone()
142 if(!cert) in Cert_clone()
163 return &cert->base; in Cert_clone()
319 cert_t *cert = NULL; in CertCreateCertificateContext() local
341 if (!cert) in CertCreateCertificateContext()
357 return &cert->ctx; in CertCreateCertificateContext()
452 cert->ctx.pbCertEncoded, cert->ctx.cbCertEncoded, pvData, in CertContext_GetProperty()
457 cert->ctx.pbCertEncoded, cert->ctx.cbCertEncoded, pvData, in CertContext_GetProperty()
[all …]
H A Drootstore.c211 static const char *get_cert_common_name(PCCERT_CONTEXT cert) in get_cert_common_name() argument
218 cert->pCertInfo->Subject.pbData, cert->pCertInfo->Subject.cbData, in get_cert_common_name()
251 PCCERT_CONTEXT cert = NULL; in check_and_store_certs() local
254 cert = CertEnumCertificatesInStore(from, cert); in check_and_store_certs()
255 if (cert) in check_and_store_certs()
261 ret = CertGetCertificateChain(engine, cert, NULL, from, in check_and_store_certs()
264 TRACE("rejecting %s: %s\n", get_cert_common_name(cert), in check_and_store_certs()
285 TRACE("rejecting %s: %s\n", get_cert_common_name(cert), in check_and_store_certs()
302 } while (cert); in check_and_store_certs()
443 PCCERT_CONTEXT cert, DWORD dwFlags) in CRYPT_RootWriteCert() argument
[all …]
H A Dmessage.c159 PCCERT_CONTEXT cert = CRYPT_GetSignerCertificate( in CryptVerifyDetachedMessageSignature() local
162 if (cert) in CryptVerifyDetachedMessageSignature()
165 CMSG_CTRL_VERIFY_SIGNATURE, cert->pCertInfo); in CryptVerifyDetachedMessageSignature()
167 *ppSignerCert = cert; in CryptVerifyDetachedMessageSignature()
169 CertFreeCertificateContext(cert); in CryptVerifyDetachedMessageSignature()
230 PCCERT_CONTEXT cert = CRYPT_GetSignerCertificate( in CryptVerifyMessageSignature() local
233 if (cert) in CryptVerifyMessageSignature()
236 CMSG_CTRL_VERIFY_SIGNATURE, cert->pCertInfo); in CryptVerifyMessageSignature()
238 *ppSignerCert = cert; in CryptVerifyMessageSignature()
240 CertFreeCertificateContext(cert); in CryptVerifyMessageSignature()
H A Dserialize.c696 PCCERT_CONTEXT cert = NULL; in CRYPT_SavePKCSToMem() local
704 cert = CertEnumCertificatesInStore(store, cert); in CRYPT_SavePKCSToMem()
705 if (cert) in CRYPT_SavePKCSToMem()
707 } while (cert); in CRYPT_SavePKCSToMem()
722 cert = CertEnumCertificatesInStore(store, cert); in CRYPT_SavePKCSToMem()
723 if (cert) in CRYPT_SavePKCSToMem()
725 signedInfo.rgCertEncoded[i].cbData = cert->cbCertEncoded; in CRYPT_SavePKCSToMem()
726 signedInfo.rgCertEncoded[i].pbData = cert->pbCertEncoded; in CRYPT_SavePKCSToMem()
729 } while (cert); in CRYPT_SavePKCSToMem()
H A Dprovstore.c81 static BOOL ProvStore_addCert(WINECRYPT_CERTSTORE *store, context_t *cert, in ProvStore_addCert() argument
87 TRACE("(%p, %p, %p, %p)\n", store, cert, toReplace, ppStoreContext); in ProvStore_addCert()
90 ret = ps->memStore->vtbl->certs.addContext(ps->memStore, cert, toReplace, in ProvStore_addCert()
96 … ret = ps->provWriteCert(ps->hStoreProv, context_ptr(cert), CERT_STORE_PROV_WRITE_ADD_FLAG); in ProvStore_addCert()
98 ret = ps->memStore->vtbl->certs.addContext(ps->memStore, cert, NULL, in ProvStore_addCert()
/reactos/modules/rostests/winetests/imagehlp/
H A Dintegrity.c168 LPWIN_CERTIFICATE cert; in test_add_certificate() local
184 if (!cert) in test_add_certificate()
191 cert->dwLength = cert_len; in test_add_certificate()
192 cert->wRevision = WIN_CERT_REVISION_1_0; in test_add_certificate()
193 cert->wCertificateType = WIN_CERT_TYPE_PKCS_SIGNED_DATA; in test_add_certificate()
194 CopyMemory(cert->bCertificate, cert_data, len); in test_add_certificate()
196 ret = pImageAddCertificate(hFile, cert, &index); in test_add_certificate()
200 HeapFree(GetProcessHeap(), 0, cert); in test_add_certificate()
208 LPWIN_CERTIFICATE cert; in test_get_certificate() local
228 if (!cert) in test_get_certificate()
[all …]
/reactos/dll/3rdparty/mbedtls/
H A Dpkcs11.c74 int mbedtls_pkcs11_x509_cert_bind( mbedtls_x509_crt *cert, pkcs11h_certificate_t pkcs11_cert ) in mbedtls_pkcs11_x509_cert_bind() argument
80 if( cert == NULL ) in mbedtls_pkcs11_x509_cert_bind()
107 if( 0 != mbedtls_x509_crt_parse( cert, cert_blob, cert_blob_size ) ) in mbedtls_pkcs11_x509_cert_bind()
127 mbedtls_x509_crt cert; in mbedtls_pkcs11_priv_key_bind() local
129 mbedtls_x509_crt_init( &cert ); in mbedtls_pkcs11_priv_key_bind()
134 if( 0 != mbedtls_pkcs11_x509_cert_bind( &cert, pkcs11_cert ) ) in mbedtls_pkcs11_priv_key_bind()
137 priv_key->len = mbedtls_pk_get_len( &cert.pk ); in mbedtls_pkcs11_priv_key_bind()
143 mbedtls_x509_crt_free( &cert ); in mbedtls_pkcs11_priv_key_bind()
/reactos/dll/win32/cryptui/
H A Dmain.c383 cert = CertEnumCertificatesInStore(store, cert); in show_store_certs()
384 if (cert) in show_store_certs()
830 return cert; in cert_mgr_index_to_cert()
837 if (cert) in show_selected_cert()
3412 PCCERT_CONTEXT cert = data->cert; in show_cert_usages() local
3491 PCCERT_CONTEXT cert = data->cert; in set_general_cert_properties() local
4446 memset(&cert, 0, sizeof(cert)); in CryptUIDlgViewCertificateW()
4447 cert.cbStruct = sizeof(cert); in CryptUIDlgViewCertificateW()
4577 if (!cert) in import_cert()
7203 cert = CertEnumCertificatesInStore(store, cert); in add_store_certs()
[all …]
/reactos/drivers/network/tcpip/lwip/src/include/lwip/
H A Daltcp_tls.h81 const u8_t *cert, size_t cert_len);
90 const u8_t *cert, size_t cert_len);
95 struct altcp_tls_config *altcp_tls_create_config_client(const u8_t *cert, size_t cert_len);
102 const u8_t *cert, size_t cert_len);
/reactos/dll/win32/cryptdlg/
H A Dmain.c219 CRYPT_PROVIDER_CERT *cert; in CRYPTDLG_CopyChain() local
221 if ((cert = WTHelperGetProvCertFromChain(sgnr, i))) in CRYPTDLG_CopyChain()
227 cert->dwError = element->TrustStatus.dwErrorStatus; in CRYPTDLG_CopyChain()
228 cert->pChainElement = element; in CRYPTDLG_CopyChain()
261 if (cert->cRootStores) in CRYPTDLG_MakeEngine()
267 for (i = 0; i < cert->cRootStores; i++) in CRYPTDLG_MakeEngine()
271 if (cert->cTrustStores) in CRYPTDLG_MakeEngine()
277 for (i = 0; i < cert->cTrustStores; i++) in CRYPTDLG_MakeEngine()
281 if (cert->cRootStores || cert->cStores || cert->cTrustStores) in CRYPTDLG_MakeEngine()
289 config.cAdditionalStore = cert->cStores; in CRYPTDLG_MakeEngine()
[all …]
/reactos/modules/rostests/winetests/wintrust/
H A Dsoftpub.c168 PCCERT_CONTEXT cert; in test_utils() local
202 if (cert) in test_utils()
208 ret = funcs->pfnAddCert2Chain(&data, 0, FALSE, 0, cert); in test_utils()
216 ok(data.pasSigners[0].pasCertChain[0].pCert == cert, in test_utils()
221 CertFreeCertificateContext(cert); in test_utils()
576 PCCERT_CONTEXT cert; in testCertTrust() local
583 if (cert) in testCertTrust()
621 CertFreeCertificateContext(cert); in testCertTrust()
1305 CRYPT_PROVIDER_CERT *cert; in test_WTHelperGetProvCertFromChain() local
1307 cert = WTHelperGetProvCertFromChain(NULL, 0); in test_WTHelperGetProvCertFromChain()
[all …]
/reactos/dll/win32/cryptnet/
H A Dcryptnet_main.c107 PCCERT_CONTEXT cert = pvPara; in CRYPT_GetUrlFromCertificateIssuer() local
118 cert->pCertInfo->cExtension, cert->pCertInfo->rgExtension))) in CRYPT_GetUrlFromCertificateIssuer()
329 PCCERT_CONTEXT cert = pvPara; in CRYPT_GetUrlFromCertificateCRLDistPoint() local
340 cert->pCertInfo->cExtension, cert->pCertInfo->rgExtension))) in CRYPT_GetUrlFromCertificateCRLDistPoint()
1547 CertFindCertificateInCRL(cert, crl, 0, NULL, &entry); in verify_cert_revocation_with_crl_online()
1564 const CRYPT_DATA_BLOB *value, PCCERT_CONTEXT cert, DWORD index, in verify_cert_revocation_from_dist_points_ext() argument
1641 const CRYPT_DATA_BLOB *value, PCCERT_CONTEXT cert, DWORD index, in verify_cert_revocation_from_aia_ext() argument
1696 CertFindCertificateInCRL(cert, crl, 0, NULL, &entry); in verify_cert_revocation_with_crl_offline()
1723 cert->pCertInfo->cExtension, cert->pCertInfo->rgExtension))) in verify_cert_revocation()
1727 cert->pCertInfo->cExtension, cert->pCertInfo->rgExtension))) in verify_cert_revocation()
[all …]
/reactos/drivers/network/tcpip/lwip/src/apps/altcp_tls/
H A Daltcp_tls_mbedtls.c105 mbedtls_x509_crt *cert; member
804 conf->cert = mem; in altcp_tls_create_config()
877 const u8_t *cert, size_t cert_len) in altcp_tls_config_server_add_privkey_cert() argument
890 srvcert = config->cert + config->cert_count; in altcp_tls_config_server_add_privkey_cert()
897 ret = mbedtls_x509_crt_parse(srvcert, cert, cert_len); in altcp_tls_config_server_add_privkey_cert()
930 const u8_t *cert, size_t cert_len) in altcp_tls_create_config_server_privkey_cert() argument
986 if (!cert || !privkey) { in altcp_tls_create_config_client_2wayauth()
997 mbedtls_x509_crt_init(conf->cert); in altcp_tls_create_config_client_2wayauth()
998 ret = mbedtls_x509_crt_parse(conf->cert, cert, cert_len); in altcp_tls_create_config_client_2wayauth()
1044 if (conf->cert) { in altcp_tls_free_config()
[all …]
/reactos/dll/win32/winhttp/
H A Dsession.c745 const CERT_CONTEXT *cert; in request_query_option() local
747 if (!buffer || *buflen < sizeof(cert)) in request_query_option()
749 *buflen = sizeof(cert); in request_query_option()
756 *buflen = sizeof(cert); in request_query_option()
773 if (!cert) return FALSE; in request_query_option()
775 ci->ftExpiry = cert->pCertInfo->NotAfter; in request_query_option()
777 ci->lpszSubjectInfo = blob_to_str( cert->dwCertEncodingType, &cert->pCertInfo->Subject ); in request_query_option()
778 ci->lpszIssuerInfo = blob_to_str( cert->dwCertEncodingType, &cert->pCertInfo->Issuer ); in request_query_option()
1024 const CERT_CONTEXT *cert; in request_set_option() local
1036 else if (buflen >= sizeof(cert)) in request_set_option()
[all …]
H A Dnet.c60 static DWORD netconn_verify_cert( PCCERT_CONTEXT cert, WCHAR *server, DWORD security_flags, BOOL ch… in netconn_verify_cert() argument
62 HCERTSTORE store = cert->hCertStore; in netconn_verify_cert()
73 ret = CertGetCertificateChain( NULL, cert, NULL, store, &chainPara, in netconn_verify_cert()
274 const CERT_CONTEXT *cert; in netconn_secure_connect() local
359 status = QueryContextAttributesW(&ctx, SECPKG_ATTR_REMOTE_CERT_CONTEXT, (void*)&cert); in netconn_secure_connect()
361 res = netconn_verify_cert(cert, hostname, security_flags, check_revocation); in netconn_secure_connect()
362 CertFreeCertificateContext(cert); in netconn_secure_connect()

123