Home | History | Annotate | Download | only in racoon

Lines Matching full:x509

53 #include <openssl/x509.h>
129 static X509 *mem2x509 __P((vchar_t *));
133 /* X509 Certificate */
275 * The following are derived from code in crypto/x509/x509_cmp.c
469 X509 *x509 = NULL;
499 if (info->x509) {
500 X509_STORE_add_cert(cert_ctx, info->x509);
530 x509 = mem2x509(cert);
531 if (x509 == NULL)
537 X509_STORE_CTX_init(csc, cert_ctx, x509, NULL);
556 if (x509 != NULL)
557 X509_free(x509);
647 * get a subjectAltName from X509 certificate.
653 X509 *x509 = NULL;
660 x509 = mem2x509(cert);
661 if (x509 == NULL)
665 len = i2d_X509_NAME(x509->cert_info->subject, NULL);
671 len = i2d_X509_NAME(x509->cert_info->subject, &bp);
673 X509_free(x509);
683 if (x509 != NULL)
684 X509_free(x509);
690 * get the subjectAltName from X509 certificate.
700 X509 *x509 = NULL;
709 x509 = mem2x509(cert);
710 if (x509 == NULL)
713 gens = X509_get_ext_d2i(x509, NID_subject_alt_name, NULL, NULL);
784 if (x509)
785 X509_free(x509);
795 * decode a X509 certificate and make a readable text terminated '\n'.
802 X509 *x509 = NULL;
809 x509 = mem2x509(cert);
810 if (x509 == NULL)
817 error = X509_print(bio, x509);
846 if (x509)
847 X509_free(x509);
852 /* get X509 structure from buffer. */
853 static X509 *
857 X509 *x509;
865 x509 = d2i_X509(NULL, (void *)&bp, cert->l);
878 x509 = PEM_read_bio_X509(bio, NULL, NULL, NULL);
882 return x509;
886 * get a X509 certificate from local file.
899 X509 *x509;
911 x509 = PEM_read_bio_X509(bio, NULL, NULL, NULL);
919 x509 = PEM_read_X509(fp, NULL, NULL, NULL);
925 if (x509 == NULL)
928 len = i2d_X509(x509, NULL);
931 X509_free(x509);
935 error = i2d_X509(x509, &bp);
936 X509_free(x509);
947 * check a X509 signature
959 X509 *x509;
966 x509 = d2i_X509(NULL, (void *)&bp, cert->l);
967 if (x509 == NULL) {
972 evp = X509_get_pubkey(x509);
975 X509_free(x509);
982 X509_free(x509);
1074 X509 *x509 = NULL;
1084 x509 = PEM_read_X509(fp, NULL, NULL, NULL);
1088 if (x509 == NULL)
1092 evp = X509_get_pubkey(x509);