Lines Matching refs:cert
119 struct x509_certificate *cert; in lib_asn1_x509() local
121 cert = x509_cert_parse(cert_data, cert_data_len); in lib_asn1_x509()
123 ut_assertf(cert != NULL, "decoding failed\n"); in lib_asn1_x509()
124 ut_assertf(!strcmp(cert->subject, "Linaro: Tester"), in lib_asn1_x509()
126 ut_assertf(!strcmp(cert->issuer, "Linaro: Tester"), in lib_asn1_x509()
128 ut_assertf(cert->pub, "public key doesn't exist\n"); in lib_asn1_x509()
129 ut_assertf(cert->pub->keylen == 0x10e, "key length doesn't match\n"); in lib_asn1_x509()
130 ut_assertf(!strcmp(cert->pub->pkey_algo, "rsa"), "algo isn't rsa\n"); in lib_asn1_x509()
131 ut_assertf(cert->valid_from == 0x5da92ddb, in lib_asn1_x509()
133 ut_assertf(cert->valid_to == 0x5f8a615b, "valid_to doesn't match\n"); in lib_asn1_x509()
135 x509_free_certificate(cert); in lib_asn1_x509()