MCPcopy Create free account
hub / github.com/apache/httpd / modssl_ec_group_from_file

Function modssl_ec_group_from_file

modules/ssl/ssl_util_ssl.c:496–513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

494
495#ifdef HAVE_ECC
496EC_GROUP *modssl_ec_group_from_file(const char *file)
497{
498 EC_GROUP *group;
499 BIO *bio;
500
501 if ((bio = BIO_new_file(file, "r")) == NULL)
502 return NULL;
503#if OPENSSL_VERSION_NUMBER < 0x30000000L
504 group = PEM_read_bio_ECPKParameters(bio, NULL, NULL, NULL);
505#else
506 group = PEM_ASN1_read_bio((void *)d2i_ECPKParameters,
507 PEM_STRING_ECPARAMETERS, bio,
508 NULL, NULL, NULL);
509#endif
510 BIO_free(bio);
511
512 return group;
513}
514#endif
515
516/* _________________________________________________________________

Callers 1

ssl_init_server_certsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected