Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

sslutil API updates [documentation / parsers / x-hdr helpers] #67

Merged
merged 1 commit into from
Dec 18, 2017

Conversation

NathanFrench
Copy link
Collaborator

  • htp_sslutil_verify2opts() : helper function to convert a string to
    the proper SSL_VERIFY_* flags (on / off / optional)

  • htp_sslutil_add_xheaders() : helper function to populate a headers
    context with X-SSL type headers:

    the last argument flags is an OR'd mask of what X-Header to include:

    • HTP_SSLUTILS_XHDR_SUBJ: X-SSL-Subject
    • HTP_SSLUTILS_XHDR_ISSR: X-SSL-Issuer
    • HTP_SSLUTILS_XHDR_NBFR: X-SSL-Notbefore
    • HTP_SSLUTILS_XHDR_NAFR: X-SSL-Notafter
    • HTP_SSLUTILS_XHDR_SERL: X-SSL-Serial
    • HTP_SSLUTILS_XHDR_CIPH: X-SSL-Cipher
    • HTP_SSLUTILS_XHDR_CERT: X-SSL-Certificate
    • HTP_SSLUTILS_XHDR_SHA1: X-SSL-SHA1
  • Added doxygen documentation for all ssutil functions

  • Renamed example_https.c to example_https_server.c

- htp_sslutil_verify2opts() : helper function to convert a string to
  the proper SSL_VERIFY_* flags (on / off / optional)

- htp_sslutil_add_xheaders() : helper function to populate a headers
  context with X-SSL type headers:

  the last argument `flags` is an OR'd mask of what X-Header to include:
    * HTP_SSLUTILS_XHDR_SUBJ: `X-SSL-Subject`
    * HTP_SSLUTILS_XHDR_ISSR: `X-SSL-Issuer`
    * HTP_SSLUTILS_XHDR_NBFR: `X-SSL-Notbefore`
    * HTP_SSLUTILS_XHDR_NAFR: `X-SSL-Notafter`
    * HTP_SSLUTILS_XHDR_SERL: `X-SSL-Serial`
    * HTP_SSLUTILS_XHDR_CIPH: `X-SSL-Cipher`
    * HTP_SSLUTILS_XHDR_CERT: `X-SSL-Certificate`
    * HTP_SSLUTILS_XHDR_SHA1: `X-SSL-SHA1`

- Added doxygen documentation for all ssutil functions

- Renamed example_https.c to example_https_server.c
@NathanFrench NathanFrench merged commit f1dabb0 into develop Dec 18, 2017
@NathanFrench NathanFrench deleted the more_ssl_utils branch December 18, 2017 16:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant