| 466 | |
| 467 | #if OPENSSL_VERSION_NUMBER < 0x30000000L |
| 468 | DH *modssl_dh_from_file(const char *file) |
| 469 | { |
| 470 | DH *dh; |
| 471 | BIO *bio; |
| 472 | |
| 473 | if ((bio = BIO_new_file(file, "r")) == NULL) |
| 474 | return NULL; |
| 475 | dh = PEM_read_bio_DHparams(bio, NULL, NULL, NULL); |
| 476 | BIO_free(bio); |
| 477 | |
| 478 | return dh; |
| 479 | } |
| 480 | #else |
| 481 | EVP_PKEY *modssl_dh_pkey_from_file(const char *file) |
| 482 | { |
no outgoing calls
no test coverage detected