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)
108 int X509_issuer_name_cmp(const X509 *a, const X509 *b)
113 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)
141 unsigned long X509_issuer_name_hash_old(X509 *x)
147 X509_NAME *X509_get_subject_name(X509 *a)
152 ASN1_INTEGER *X509_get_serialNumber(X509 *a)
157 unsigned long X509_subject_name_hash(X509 *x)
163 unsigned long X509_subject_name_hash_old(X509 *x)
173 * STACKs), the way X509 handling is - these operations may
179 int X509_cmp(const X509 *a, const X509 *b)
182 X509_check_purpose((X509 *)a, -1, 0);
183 X509_check_purpose((X509 *)b, -1, 0);
263 /* Search a stack of X509 for a match */
264 X509 *X509_find_by_issuer_and_serial(STACK_OF(X509) *sk, X509_NAME *name,
269 X509 x,*x509=NULL;
279 x509=sk_X509_value(sk,i);
280 if (X509_issuer_and_serial_cmp(x509,&x) == 0)
281 return(x509);
286 X509 *X509_find_by_subject(STACK_OF(X509) *sk, X509_NAME *name)
288 X509 *x509;
293 x509=sk_X509_value(sk,i);
294 if (X509_NAME_cmp(X509_get_subject_name(x509),name) == 0)
295 return(x509);
300 EVP_PKEY *X509_get_pubkey(X509 *x)
307 ASN1_BIT_STRING *X509_get0_pubkey_bitstr(const X509 *x)
313 int X509_check_private_key(X509 *x, EVP_PKEY *k)