Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
tobil4sk committed Nov 24, 2024
1 parent 3b27d05 commit a0bef4d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/mbedtls/mbedtls_stubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ static struct custom_operations ssl_config_ops = {

#ifdef _WIN32
static int verify_callback(void* param, mbedtls_x509_crt *crt, int depth, uint32_t *flags) {
printf("verify_callback(): %d\n", flags);
printf("verify_callback(): %d\n", *flags);
if(depth == 0) {
HCERTSTORE store = CertOpenStore(CERT_STORE_PROV_MEMORY, 0, 0, CERT_STORE_DEFER_CLOSE_UNTIL_LAST_FREE_FLAG, NULL);
if(store == NULL) {
Expand Down Expand Up @@ -356,6 +356,7 @@ static int verify_callback(void* param, mbedtls_x509_crt *crt, int depth, uint32
CertFreeCertificateContext(primary_context);
CertCloseStore(store, 0);
}
printf("verify_callback(): done %d\n", *flags);
return 0;
}
#endif
Expand Down

0 comments on commit a0bef4d

Please sign in to comment.