Home | History | Annotate | Download | only in asn1

Lines Matching full:ameth

118 			   const EVP_PKEY_ASN1_METHOD *, ameth);
127 const EVP_PKEY_ASN1_METHOD *, ameth);
206 const EVP_PKEY_ASN1_METHOD *ameth;
213 ameth = ENGINE_pkey_asn1_find_str(&e, str, len);
214 if (ameth)
220 ameth = NULL;
223 return ameth;
230 ameth = EVP_PKEY_asn1_get0(i);
231 if (ameth->pkey_flags & ASN1_PKEY_ALIAS)
233 if (((int)strlen(ameth->pem_str) == len) &&
234 !strncasecmp(ameth->pem_str, str, len))
235 return ameth;
240 int EVP_PKEY_asn1_add0(const EVP_PKEY_ASN1_METHOD *ameth)
248 if (!sk_EVP_PKEY_ASN1_METHOD_push(app_methods, ameth))
256 EVP_PKEY_ASN1_METHOD *ameth;
257 ameth = EVP_PKEY_asn1_new(from, ASN1_PKEY_ALIAS, NULL, NULL);
258 if (!ameth)
260 ameth->pkey_base_id = to;
261 return EVP_PKEY_asn1_add0(ameth);
266 const EVP_PKEY_ASN1_METHOD *ameth)
268 if (!ameth)
271 *ppkey_id = ameth->pkey_id;
273 *ppkey_base_id = ameth->pkey_base_id;
275 *ppkey_flags = ameth->pkey_flags;
277 *pinfo = ameth->info;
279 *ppem_str = ameth->pem_str;
285 return pkey->ameth;
291 EVP_PKEY_ASN1_METHOD *ameth;
292 ameth = OPENSSL_malloc(sizeof(EVP_PKEY_ASN1_METHOD));
293 if (!ameth)
296 memset(ameth, 0, sizeof(EVP_PKEY_ASN1_METHOD));
298 ameth->pkey_id = id;
299 ameth->pkey_base_id = id;
300 ameth->pkey_flags = flags | ASN1_PKEY_DYNAMIC;
304 ameth->info = BUF_strdup(info);
305 if (!ameth->info)
309 ameth->info = NULL;
313 ameth->pem_str = BUF_strdup(pem_str);
314 if (!ameth->pem_str)
318 ameth->pem_str = NULL;
320 ameth->pub_decode = 0;
321 ameth->pub_encode = 0;
322 ameth->pub_cmp = 0;
323 ameth->pub_print = 0;
325 ameth->priv_decode = 0;
326 ameth->priv_encode = 0;
327 ameth->priv_print = 0;
329 ameth->old_priv_encode = 0;
330 ameth->old_priv_decode = 0;
332 ameth->item_verify = 0;
333 ameth->item_sign = 0;
335 ameth->pkey_size = 0;
336 ameth->pkey_bits = 0;
338 ameth->param_decode = 0;
339 ameth->param_encode = 0;
340 ameth->param_missing = 0;
341 ameth->param_copy = 0;
342 ameth->param_cmp = 0;
343 ameth->param_print = 0;
345 ameth->pkey_free = 0;
346 ameth->pkey_ctrl = 0;
348 return ameth;
352 EVP_PKEY_asn1_free(ameth);
391 void EVP_PKEY_asn1_free(EVP_PKEY_ASN1_METHOD *ameth)
393 if (ameth && (ameth->pkey_flags & ASN1_PKEY_DYNAMIC))
395 if (ameth->pem_str)
396 OPENSSL_free(ameth->pem_str);
397 if (ameth->info)
398 OPENSSL_free(ameth->info);
399 OPENSSL_free(ameth);
403 void EVP_PKEY_asn1_set_public(EVP_PKEY_ASN1_METHOD *ameth,
412 ameth->pub_decode = pub_decode;
413 ameth->pub_encode = pub_encode;
414 ameth->pub_cmp = pub_cmp;
415 ameth->pub_print = pub_print;
416 ameth->pkey_size = pkey_size;
417 ameth->pkey_bits = pkey_bits;
420 void EVP_PKEY_asn1_set_private(EVP_PKEY_ASN1_METHOD *ameth,
426 ameth->priv_decode = priv_decode;
427 ameth->priv_encode = priv_encode;
428 ameth->priv_print = priv_print;
431 void EVP_PKEY_asn1_set_param(EVP_PKEY_ASN1_METHOD *ameth,
441 ameth->param_decode = param_decode;
442 ameth->param_encode = param_encode;
443 ameth->param_missing = param_missing;
444 ameth->param_copy = param_copy;
445 ameth->param_cmp = param_cmp;
446 ameth->param_print = param_print;
449 void EVP_PKEY_asn1_set_free(EVP_PKEY_ASN1_METHOD *ameth,
452 ameth->pkey_free = pkey_free;
455 void EVP_PKEY_asn1_set_ctrl(EVP_PKEY_ASN1_METHOD *ameth,
459 ameth->pkey_ctrl = pkey_ctrl;