Displaying 3 results from an estimated 3 matches for "current_cert".
2019 Nov 11
3
dovecot -2.2.24 on Fedora 31
...cot -2.2.24 on Fedora 31 and get the following error:
iostream-openssl.c: In function ?openssl_iostream_verify_client_cert?:
iostream-openssl.c:118:37: error: dereferencing pointer to incomplete type ?X509_STORE_CTX? {aka ?struct x509_store_ctx_st?}
118 | subject = X509_get_subject_name(ctx->current_cert);
| ^~
make[3]: *** [Makefile:561: iostream-openssl.lo] Error 1
All openssl packages installed. What's the reason and how solve the problem?
Kind regards,
Frank Elsner
2019 Nov 11
0
dovecot -2.2.24 on Fedora 31
...a 31 and get the following error:
>
> iostream-openssl.c: In function ?openssl_iostream_verify_client_cert?:
> iostream-openssl.c:118:37: error: dereferencing pointer to incomplete type ?X509_STORE_CTX? {aka ?struct x509_store_ctx_st?}
> 118 | subject = X509_get_subject_name(ctx->current_cert);
> | ^~
> make[3]: *** [Makefile:561: iostream-openssl.lo] Error 1
>
> All openssl packages installed. What's the reason and how solve the problem?
>
> Kind regards,
> Frank Elsner
Is there some reason you want to use ancient d...
2006 Jun 01
1
ssl-proxy: client certificates and crl check
...p(buf, sizeof(buf) );
X509_free(x509);
-
+ /* HJHJ */
+
return *name == '\0' ? NULL : name;
}
@@ -582,10 +588,22 @@
proxy = SSL_get_ex_data(ssl, extdata_index);
proxy->cert_received = TRUE;
+
+ /* HJHJ */
+ char buf[1024];
+ X509_NAME_oneline( X509_get_subject_name(ctx->current_cert),buf,sizeof(buf));
+
if (!preverify_ok)
+ {
proxy->cert_broken = TRUE;
+ i_warning("BAD CERT %s: %s",X509_verify_cert_error_string(ctx->error),buf);
+ }
+ else
+ { i_warning("CERT: %s",buf); } /* logging */
- return 1;
+ return preverify_ok;
+ /* HJHJ */
+
}...