Lines Matching full:x509
1 /* crypto/x509/x509_cmp.c */
64 #include <openssl/x509.h>
67 int X509_issuer_and_serial_cmp(const X509 *a, const X509 *b)
80 unsigned long X509_issuer_and_serial_hash(X509 *a)
104 int X509_issuer_name_cmp(const X509 *a, const X509 *b)
109 int X509_subject_name_cmp(const X509 *a, const X509 *b)
126 X509_NAME *X509_get_issuer_name(X509 *a)
131 unsigned long X509_issuer_name_hash(X509 *x)
137 unsigned long X509_issuer_name_hash_old(X509 *x)
143 X509_NAME *X509_get_subject_name(X509 *a)
148 ASN1_INTEGER *X509_get_serialNumber(X509 *a)
153 unsigned long X509_subject_name_hash(X509 *x)
159 unsigned long X509_subject_name_hash_old(X509 *x)
169 * STACKs), the way X509 handling is - these operations may
175 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);
251 /* Search a stack of X509 for a match */
252 X509 *X509_find_by_issuer_and_serial(STACK_OF(X509) *sk, X509_NAME *name,
257 X509 x,*x509=NULL;
267 x509=sk_X509_value(sk,i);
268 if (X509_issuer_and_serial_cmp(x509,&x) == 0)
269 return(x509);
274 X509 *X509_find_by_subject(STACK_OF(X509) *sk, X509_NAME *name)
276 X509 *x509;
281 x509=sk_X509_value(sk,i);
282 if (X509_NAME_cmp(X509_get_subject_name(x509),name) == 0)
283 return(x509);
288 EVP_PKEY *X509_get_pubkey(X509 *x)
295 ASN1_BIT_STRING *X509_get0_pubkey_bitstr(const X509 *x)
301 int X509_check_private_key(X509 *x, EVP_PKEY *k)