diff --git a/src/core/properties/boolean.c b/src/core/properties/boolean.c index 5afc5d2..bede819 100644 --- a/src/core/properties/boolean.c +++ b/src/core/properties/boolean.c @@ -39,6 +39,7 @@ #include #include #include + #include int lib3270_is_starting(const H3270 *hSession) { diff --git a/src/include/lib3270/properties.h b/src/include/lib3270/properties.h index f539b50..b11a712 100644 --- a/src/include/lib3270/properties.h +++ b/src/include/lib3270/properties.h @@ -213,21 +213,6 @@ LIB3270_EXPORT const LIB3270_UINT_PROPERTY * lib3270_unsigned_property_get_by_name(const char *name); /** - * @brief Disable automatic download of the CRL. - * - * @param hSession Session handle. - * @param Value Non zero to enable automatic download of CRL. - * - * @return 0 if ok or error code if not (Sets errno). - * - * @retval 0 Success, the property was set. - * @retval ENOTSUP No SSL/TLS support. - */ - LIB3270_EXPORT int lib3270_ssl_set_crl_download(H3270 *hSession, int enabled); - - LIB3270_EXPORT int lib3270_ssl_get_crl_download(const H3270 *hSession); - - /** * @brief Get lib3270 version info. * * @return String with lib3270 version info (release it with lib3270_free). diff --git a/src/include/lib3270/ssl.h b/src/include/lib3270/ssl.h index 4b29cc8..800c0d5 100644 --- a/src/include/lib3270/ssl.h +++ b/src/include/lib3270/ssl.h @@ -107,6 +107,22 @@ LIB3270_EXPORT char * lib3270_get_ssl_crl_text(const H3270 *hSession); LIB3270_EXPORT char * lib3270_get_ssl_peer_certificate_text(const H3270 *hSession); + /** + * @brief Disable automatic download of the CRL. + * + * @param hSession Session handle. + * @param Value Non zero to enable automatic download of CRL. + * + * @return 0 if ok or error code if not (Sets errno). + * + * @retval 0 Success, the property was set. + * @retval ENOTSUP No SSL/TLS support. + */ + LIB3270_EXPORT int lib3270_ssl_set_crl_download(H3270 *hSession, int enabled); + + LIB3270_EXPORT int lib3270_ssl_get_crl_download(const H3270 *hSession); + + #ifdef __cplusplus } #endif diff --git a/src/ssl/properties.c b/src/ssl/properties.c index a7742e5..3efb2a0 100644 --- a/src/ssl/properties.c +++ b/src/ssl/properties.c @@ -143,6 +143,8 @@ LIB3270_EXPORT char * lib3270_get_ssl_peer_certificate_text(const H3270 *hSessio #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wunused-parameter" + LIB3270_EXPORT int lib3270_crl_set_url(H3270 *hSession, const char *crl); + int lib3270_crl_set_url(H3270 *hSession, const char *crl) { -- libgit2 0.21.2