search for: x509_get_subject_nam

Displaying 9 results from an estimated 9 matches for "x509_get_subject_nam".

Did you mean: x509_get_subject_name
2006 Jun 01
1
ssl-proxy: client certificates and crl check
...8,7 @@ const char *ssl_proxy_get_peer_name(struct ssl_proxy *proxy) { X509 *x509; - char buf[1024]; + char buf[256]; const char *name; if (!ssl_proxy_has_valid_client_cert(proxy)) @@ -508,10 +508,16 @@ if (x509 == NULL) return NULL; /* we should have had it.. */ - X509_NAME_oneline(X509_get_subject_name(x509), buf, sizeof(buf)); - name = t_strndup(buf, sizeof(buf)); + /* HJHJ */ + /* the X509_N_gtbN can return -1 without 0-terminating buf */ + /* if the call succeeds buf is 0-terminated (openssl 0.9.7e / 0.9.8b src) */ + buf[0] = '\0'; + if( X509_NAME_get_text_by_NID(X509_get_subject_name...
2019 Nov 11
3
dovecot -2.2.24 on Fedora 31
Hi, I try to compile dovecot -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
2005 Jul 16
1
Compiling under Fedora Core 4 - Problem
...undefined reference to `SSL_do_handshake' /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x3d5): In function `sslaccept': : undefined reference to `SSL_get_peer_certificate' /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x3e3): In function `sslaccept': : undefined reference to `X509_get_subject_name' /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x3fb): In function `sslaccept': : undefined reference to `X509_NAME_oneline' /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x40b): In function `sslaccept': : undefined reference to `X509_get_issuer_name' /usr/lib/mysql/libmy...
2019 Nov 11
0
dovecot -2.2.24 on Fedora 31
...mpile dovecot -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 Is there some reason you...
2015 Feb 11
2
[PATCH] Fix for client certificate validation does not work
...09_NAME_new_null(); - if (*xnames_r == NULL) - i_fatal_status(FATAL_OUTOFMEM, "sk_X509_NAME_new_null() failed"); - } - for(i = 0; i < sk_X509_INFO_num(inf); i++) { - itmp = sk_X509_INFO_value(inf, i); - if(itmp->x509) { - X509_STORE_add_cert(store, itmp->x509); - xname = X509_get_subject_name(itmp->x509); - if (xname != NULL && xnames_r != NULL) { - xname = X509_NAME_dup(xname); - if (xname == NULL) - i_fatal_status(FATAL_OUTOFMEM, "X509_NAME_dup() failed"); - sk_X509_NAME_push(*xnames_r, xname); - } - } - if(itmp->crl) - X509_STORE_add_crl(...
2007 Mar 08
5
1.0rc26: ssl_verify_client=yes ?
Q1) I can't get ssl_verify_client_cert=yes working. The ssl key and cert are signed using our CA. Also the ssl_ca_file has a CRL appended (no revokes yet). Expected behavior: Stop the SSL (the client doesn't have a cert installed) Current behavior: Mail clients accepts SSL and login succeeds. (both Evolution and Thunderbird). My bad? Please advise. Q2) The next step, if dovecot blocks
2005 Aug 09
2
error compiling asterisk on solaris
...o `sk_value' /usr/local/ssl/lib/libssl.so: undefined reference to `CRYPTO_new_ex_data' /usr/local/ssl/lib/libssl.so: undefined reference to `BIO_pop' /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_PKEY_copy_parameters' /usr/local/ssl/lib/libssl.so: undefined reference to `X509_get_subject_name' /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_PKEY_new' /usr/local/ssl/lib/libssl.so: undefined reference to `i2d_X509_NAME' /usr/local/ssl/lib/libssl.so: undefined reference to `RSA_public_encrypt' /usr/local/ssl/lib/libssl.so: undefined reference to `i2d_X509' /u...
2012 Oct 30
5
Pigeonhole 3.3 broken against Dovecot 2.1.10
...; /usr/local/lib/dovecot/libdovecot-storage.so: undefined reference to `SSL_use_PrivateKey at OPENSSL_1.0.0' /usr/local/lib/dovecot/libdovecot-storage.so: undefined reference to `SSL_set_info_callback at OPENSSL_1.0.0' /usr/local/lib/dovecot/libdovecot-storage.so: undefined reference to `X509_get_subject_name at OPENSSL_1.0.0' /usr/local/lib/dovecot/libdovecot-storage.so: undefined reference to `ENGINE_init at OPENSSL_1.0.0' /usr/local/lib/dovecot/libdovecot-storage.so: undefined reference to `ERR_clear_error at OPENSSL_1.0.0' /usr/local/lib/dovecot/libdovecot-storage.so: undefined refere...
2017 Aug 25
3
trouble compiling Dovecot 2.2.31 on Solaris 10 SPARC - libssl_iostream_openssl.so is not portable!
...X509_STORE_CTX_get_ex_data ../lib-ssl-iostream/.libs/libssl_iostream_openssl.so ERR_free_strings ../lib-ssl-iostream/.libs/libssl_iostream_openssl.so X509_NAME_dup ../lib-ssl-iostream/.libs/libssl_iostream_openssl.so SSL_CTX_set_tmp_rsa_callback ../lib-ssl-iostream/.libs/libssl_iostream_openssl.so X509_get_subject_name ../lib-ssl-iostream/.libs/libssl_iostream_openssl.so SSL_library_init ../lib-ssl-iostream/.libs/libssl_iostream_openssl.so ENGINE_finish ../lib-ssl-iostream/.libs/libssl_iostream_openssl.so ENGINE_by_id ../lib-ssl-iostream/.libs/libssl_iostream_openssl.so ld: fatal: symbol referencing errors. No o...