Lines Matching refs:der
111 unsigned char *der; in tlsv1_add_cert() local
133 der = base64_decode(pos, end - pos, &der_len); in tlsv1_add_cert()
134 if (der == NULL) { in tlsv1_add_cert()
140 if (tlsv1_add_cert_der(chain, der, der_len) < 0) { in tlsv1_add_cert()
143 os_free(der); in tlsv1_add_cert()
147 os_free(der); in tlsv1_add_cert()
269 unsigned char *der; in tlsv1_set_key_pem() local
296 der = base64_decode(pos, end - pos, &der_len); in tlsv1_set_key_pem()
297 if (!der) in tlsv1_set_key_pem()
299 pkey = crypto_private_key_import(der, der_len, NULL); in tlsv1_set_key_pem()
300 os_free(der); in tlsv1_set_key_pem()
310 unsigned char *der; in tlsv1_set_key_enc_pem() local
324 der = base64_decode(pos, end - pos, &der_len); in tlsv1_set_key_enc_pem()
325 if (!der) in tlsv1_set_key_enc_pem()
327 pkey = crypto_private_key_import(der, der_len, passwd); in tlsv1_set_key_enc_pem()
328 os_free(der); in tlsv1_set_key_enc_pem()
1209 unsigned char *der; in tlsv1_set_dhparams_blob() local
1230 der = base64_decode(pos, end - pos, &der_len); in tlsv1_set_dhparams_blob()
1231 if (der == NULL) { in tlsv1_set_dhparams_blob()
1236 if (tlsv1_set_dhparams_der(cred, der, der_len) < 0) { in tlsv1_set_dhparams_blob()
1239 os_free(der); in tlsv1_set_dhparams_blob()
1243 os_free(der); in tlsv1_set_dhparams_blob()