Lines Matching refs:NULL

31     OSSL_DECODER_CTX *dctx = NULL;  in d2i_PrivateKey_decoder()
33 EVP_PKEY *pkey = NULL, *bak_a = NULL; in d2i_PrivateKey_decoder()
35 const char *key_name = NULL; in d2i_PrivateKey_decoder()
45 if (key_name == NULL) in d2i_PrivateKey_decoder()
46 return NULL; in d2i_PrivateKey_decoder()
51 p8info = d2i_PKCS8_PRIV_KEY_INFO(NULL, pp, len); in d2i_PrivateKey_decoder()
53 if (p8info != NULL) { in d2i_PrivateKey_decoder()
54 if (key_name == NULL in d2i_PrivateKey_decoder()
55 && PKCS8_pkey_get0(&algoid, NULL, NULL, NULL, p8info) in d2i_PrivateKey_decoder()
65 if (a != NULL && (bak_a = *a) != NULL) in d2i_PrivateKey_decoder()
69 if (a != NULL) in d2i_PrivateKey_decoder()
71 if (dctx == NULL) in d2i_PrivateKey_decoder()
77 && *ppkey != NULL in d2i_PrivateKey_decoder()
79 if (a != NULL) in d2i_PrivateKey_decoder()
87 return NULL; in d2i_PrivateKey_decoder()
97 if (a == NULL || *a == NULL) { in ossl_d2i_PrivateKey_legacy()
98 if ((ret = EVP_PKEY_new()) == NULL) { in ossl_d2i_PrivateKey_legacy()
100 return NULL; in ossl_d2i_PrivateKey_legacy()
106 ret->engine = NULL; in ossl_d2i_PrivateKey_legacy()
118 if (ret->ameth->priv_decode != NULL in ossl_d2i_PrivateKey_legacy()
119 || ret->ameth->priv_decode_ex != NULL) { in ossl_d2i_PrivateKey_legacy()
121 PKCS8_PRIV_KEY_INFO *p8 = NULL; in ossl_d2i_PrivateKey_legacy()
122 p8 = d2i_PKCS8_PRIV_KEY_INFO(NULL, &p, length); in ossl_d2i_PrivateKey_legacy()
123 if (p8 == NULL) { in ossl_d2i_PrivateKey_legacy()
129 if (tmp == NULL) { in ossl_d2i_PrivateKey_legacy()
147 if (a != NULL) in ossl_d2i_PrivateKey_legacy()
151 if (a == NULL || *a != ret) in ossl_d2i_PrivateKey_legacy()
153 return NULL; in ossl_d2i_PrivateKey_legacy()
164 if (ret == NULL) in d2i_PrivateKey_ex()
172 return d2i_PrivateKey_ex(type, a, pp, length, NULL, NULL); in d2i_PrivateKey()
191 inkey = d2i_ASN1_SEQUENCE_ANY(NULL, &p, length); in d2i_AutoPrivateKey_legacy()
203 PKCS8_PRIV_KEY_INFO *p8 = d2i_PKCS8_PRIV_KEY_INFO(NULL, &p, length); in d2i_AutoPrivateKey_legacy()
207 if (p8 == NULL) { in d2i_AutoPrivateKey_legacy()
209 return NULL; in d2i_AutoPrivateKey_legacy()
213 if (ret == NULL) in d2i_AutoPrivateKey_legacy()
214 return NULL; in d2i_AutoPrivateKey_legacy()
216 if (a != NULL) { in d2i_AutoPrivateKey_legacy()
239 if (ret == NULL) in d2i_AutoPrivateKey_ex()
247 return d2i_AutoPrivateKey_ex(a, pp, length, NULL, NULL); in d2i_AutoPrivateKey()