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

Function pkey_get_MD

modules/md/md_crypt.c:785–799  ·  view source on GitHub ↗

Determine the message digest used for signing with the given private key. */

Source from the content-addressed store, hash-verified

783/* Determine the message digest used for signing with the given private key.
784 */
785static const EVP_MD *pkey_get_MD(md_pkey_t *pkey)
786{
787 switch (EVP_PKEY_id(pkey->pkey)) {
788#ifdef NID_ED25519
789 case NID_ED25519:
790 return NULL;
791#endif
792#ifdef NID_ED448
793 case NID_ED448:
794 return NULL;
795#endif
796 default:
797 return EVP_sha256();
798 }
799}
800
801static apr_status_t gen_rsa(md_pkey_t **ppkey, apr_pool_t *p, unsigned int bits)
802{

Callers 3

md_cert_req_createFunction · 0.85
md_cert_self_signFunction · 0.85
md_cert_make_tls_alpn_01Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected