Determine the message digest used for signing with the given private key. */
| 783 | /* Determine the message digest used for signing with the given private key. |
| 784 | */ |
| 785 | static 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 | |
| 801 | static apr_status_t gen_rsa(md_pkey_t **ppkey, apr_pool_t *p, unsigned int bits) |
| 802 | { |
no outgoing calls
no test coverage detected