diff options
Diffstat (limited to 'src/microhttpd/internal.h')
-rw-r--r-- | src/microhttpd/internal.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/microhttpd/internal.h b/src/microhttpd/internal.h index 01f2dbea..d1835ea0 100644 --- a/src/microhttpd/internal.h +++ b/src/microhttpd/internal.h | |||
@@ -1611,12 +1611,27 @@ struct MHD_Daemon | |||
1611 | */ | 1611 | */ |
1612 | gnutls_dh_params_t dh_params; | 1612 | gnutls_dh_params_t dh_params; |
1613 | 1613 | ||
1614 | /** | ||
1615 | * Server PSK credentials | ||
1616 | */ | ||
1617 | gnutls_psk_server_credentials_t psk_cred; | ||
1618 | |||
1614 | #if GNUTLS_VERSION_MAJOR >= 3 | 1619 | #if GNUTLS_VERSION_MAJOR >= 3 |
1615 | /** | 1620 | /** |
1616 | * Function that can be used to obtain the certificate. Needed | 1621 | * Function that can be used to obtain the certificate. Needed |
1617 | * for SNI support. See #MHD_OPTION_HTTPS_CERT_CALLBACK. | 1622 | * for SNI support. See #MHD_OPTION_HTTPS_CERT_CALLBACK. |
1618 | */ | 1623 | */ |
1619 | gnutls_certificate_retrieve_function2 *cert_callback; | 1624 | gnutls_certificate_retrieve_function2 *cert_callback; |
1625 | |||
1626 | /** | ||
1627 | * Function that can be used to obtain the shared key. | ||
1628 | */ | ||
1629 | MHD_PskServerCredentialsCallback cred_callback; | ||
1630 | |||
1631 | /** | ||
1632 | * Closure for @e cred_callback. | ||
1633 | */ | ||
1634 | void *cred_callback_cls; | ||
1620 | #endif | 1635 | #endif |
1621 | 1636 | ||
1622 | /** | 1637 | /** |