Lines Matching refs:X509
1 /* crypto/x509/x509_cmp.c */
67 #include <openssl/x509.h>
71 int X509_issuer_and_serial_cmp(const X509 *a, const X509 *b)
83 unsigned long X509_issuer_and_serial_hash(X509 *a)
110 int X509_issuer_name_cmp(const X509 *a, const X509 *b)
115 int X509_subject_name_cmp(const X509 *a, const X509 *b)
130 X509_NAME *X509_get_issuer_name(X509 *a)
135 unsigned long X509_issuer_name_hash(X509 *x)
140 unsigned long X509_issuer_name_hash_old(X509 *x)
145 X509_NAME *X509_get_subject_name(X509 *a)
150 ASN1_INTEGER *X509_get_serialNumber(X509 *a)
155 unsigned long X509_subject_name_hash(X509 *x)
160 unsigned long X509_subject_name_hash_old(X509 *x)
168 * STACKs), the way X509 handling is - these operations may
174 int X509_cmp(const X509 *a, const X509 *b)
178 X509_check_purpose((X509 *)a, -1, 0);
179 X509_check_purpose((X509 *)b, -1, 0);
268 /* Search a stack of X509 for a match */
269 X509 *X509_find_by_issuer_and_serial(STACK_OF(X509) *sk, X509_NAME *name,
274 X509 x,*x509=NULL;
284 x509=sk_X509_value(sk,i);
285 if (X509_issuer_and_serial_cmp(x509,&x) == 0)
286 return(x509);
291 X509 *X509_find_by_subject(STACK_OF(X509) *sk, X509_NAME *name)
293 X509 *x509;
298 x509=sk_X509_value(sk,i);
299 if (X509_NAME_cmp(X509_get_subject_name(x509),name) == 0)
300 return(x509);
305 EVP_PKEY *X509_get_pubkey(X509 *x)
312 ASN1_BIT_STRING *X509_get0_pubkey_bitstr(const X509 *x)
319 int X509_check_private_key(X509 *x, EVP_PKEY *k)
336 OPENSSL_PUT_ERROR(X509, X509_R_KEY_VALUES_MISMATCH);
339 OPENSSL_PUT_ERROR(X509, X509_R_KEY_TYPE_MISMATCH);
342 OPENSSL_PUT_ERROR(X509, X509_R_UNKNOWN_KEY_TYPE);
393 int X509_chain_check_suiteb(int *perror_depth, X509 *x, STACK_OF(X509) *chain,
478 * of each X509 structure.
480 STACK_OF(X509) *X509_chain_up_ref(STACK_OF(X509) *chain)
482 STACK_OF(X509) *ret;