Searched refs:cert_attr (Results 1 – 1 of 1) sorted by relevance
929 CK_ATTRIBUTE cert_attr[3]; in pkcs11_fetch_x509_pubkey() local951 memset(&cert_attr, 0, sizeof(cert_attr)); in pkcs11_fetch_x509_pubkey()952 cert_attr[0].type = CKA_ID; in pkcs11_fetch_x509_pubkey()953 cert_attr[1].type = CKA_SUBJECT; in pkcs11_fetch_x509_pubkey()954 cert_attr[2].type = CKA_VALUE; in pkcs11_fetch_x509_pubkey()960 rv = f->C_GetAttributeValue(session, *obj, cert_attr, 3); in pkcs11_fetch_x509_pubkey()971 if (cert_attr[1].ulValueLen == 0 || in pkcs11_fetch_x509_pubkey()972 cert_attr[2].ulValueLen == 0) { in pkcs11_fetch_x509_pubkey()979 if (cert_attr[i].ulValueLen > 0) in pkcs11_fetch_x509_pubkey()980 cert_attr[i].pValue = xcalloc(1, cert_attr[i].ulValueLen); in pkcs11_fetch_x509_pubkey()[all …]