Home | History | Annotate | Download | only in ssl

Lines Matching full:x509

64 #include <openssl/x509.h>
69 static int ssl_set_cert(CERT *c, X509 *x509);
76 int SSL_use_certificate(SSL *ssl, X509 *x) {
91 X509 *x509 = d2i_X509(NULL, &p, (long)der_len);
92 if (x509 == NULL || p != der + der_len) {
94 X509_free(x509);
98 int ret = SSL_use_certificate(ssl, x509);
99 X509_free(x509);
133 if (c->x509 != NULL) {
137 !X509_check_private_key(c->x509, pkey)) {
138 X509_free(c->x509);
139 c->x509 = NULL;
194 int SSL_CTX_use_certificate(SSL_CTX *ctx, X509 *x) {
203 static int ssl_set_cert(CERT *c, X509 *x) {
233 X509_free(c->x509);
234 c->x509 = X509_up_ref(x);
247 X509 *x509 = d2i_X509(NULL, &p, (long)der_len);
248 if (x509 == NULL || p != der + der_len) {
250 X509_free(x509);
254 int ret = SSL_CTX_use_certificate(ctx, x509);
255 X509_free(x509);