Home | History | Annotate | Download | only in ssl

Lines Matching full:x509

125 #include <openssl/x509.h>
172 if (cert->x509 != NULL) {
173 ret->x509 = X509_up_ref(cert->x509);
204 X509_free(cert->x509);
205 cert->x509 = NULL;
227 int ssl_cert_set0_chain(CERT *cert, STACK_OF(X509) *chain) {
233 int ssl_cert_set1_chain(CERT *cert, STACK_OF(X509) *chain) {
234 STACK_OF(X509) *dchain;
252 int ssl_cert_add0_chain_cert(CERT *cert, X509 *x509) {
256 if (cert->chain == NULL || !sk_X509_push(cert->chain, x509)) {
263 int ssl_cert_add1_chain_cert(CERT *cert, X509 *x509) {
264 if (!ssl_cert_add0_chain_cert(cert, x509)) {
268 X509_up_ref(x509);
277 int ssl_verify_cert_chain(SSL *ssl, STACK_OF(X509) *cert_chain) {
282 X509 *leaf = sk_X509_value(cert_chain, 0);
372 static int add_client_CA(STACK_OF(X509_NAME) **sk, X509 *x509) {
375 if (x509 == NULL) {
385 name = X509_NAME_dup(X509_get_subject_name(x509));
398 int SSL_add_client_CA(SSL *ssl, X509 *x509) {
399 return add_client_CA(&ssl->client_CA, x509);
402 int SSL_CTX_add_client_CA(SSL_CTX *ctx, X509 *x509) {
403 return add_client_CA(&ctx->client_CA, x509);
407 static int ssl_add_cert_to_buf(BUF_MEM *buf, unsigned long *l, X509 *x) {
431 X509 *x = cert->x509;
432 STACK_OF(X509) *chain = cert->chain;
478 int SSL_CTX_set0_chain(SSL_CTX *ctx, STACK_OF(X509) *chain) {
482 int SSL_CTX_set1_chain(SSL_CTX *ctx, STACK_OF(X509) *chain) {
486 int SSL_set0_chain(SSL *ssl, STACK_OF(X509) *chain) {
490 int SSL_set1_chain(SSL *ssl, STACK_OF(X509) *chain) {
494 int SSL_CTX_add0_chain_cert(SSL_CTX *ctx, X509 *x509) {
495 return ssl_cert_add0_chain_cert(ctx->cert, x509);
498 int SSL_CTX_add1_chain_cert(SSL_CTX *ctx, X509 *x509) {
499 return ssl_cert_add1_chain_cert(ctx->cert, x509);
502 int SSL_CTX_add_extra_chain_cert(SSL_CTX *ctx, X509 *x509) {
503 return SSL_CTX_add0_chain_cert(ctx, x509);
506 int SSL_add0_chain_cert(SSL *ssl, X509 *x509) {
507 return ssl_cert_add0_chain_cert(ssl->cert, x509);
510 int SSL_add1_chain_cert(SSL *ssl, X509 *x509) {
511 return ssl_cert_add1_chain_cert(ssl->cert, x509);
526 int SSL_CTX_get0_chain_certs(const SSL_CTX *ctx, STACK_OF(X509) **out_chain) {
532 STACK_OF(X509) **out_chain) {
536 int SSL_get0_chain_certs(const SSL *ssl, STACK_OF(X509) **out_chain) {