![]() |
C library for SOAP (Simple Object Access Protocol) |
Modules | |
| SSL Errors | |
Defines | |
| #define | NHTTPD_ARG_HTTPS "-NHTTPS" |
Functions | |
| herror_t | hssl_module_init (int argc, char **argv) |
| void | hssl_module_destroy (void) |
| void | hssl_set_certificate (const char *filename) |
| void | hssl_set_certpass (const char *password) |
| void | hssl_set_ca_list (const char *filename) |
| void | hssl_enable (void) |
| int | hssl_enabled (void) |
| herror_t | hssl_client_ssl (struct hsocket_t *sock) |
| herror_t | hssl_server_ssl (struct hsocket_t *sock) |
| void | hssl_cleanup (struct hsocket_t *sock) |
| int | verify_sn (X509 *cert, int who, int nid, char *str) |
| void | hssl_set_user_verify (int func(X509 *cert)) |
| herror_t | hssl_read (struct hsocket_t *sock, char *buf, size_t len, size_t *received) |
| herror_t | hssl_write (struct hsocket_t *sock, const char *buf, size_t len, size_t *sent) |
| #define NHTTPD_ARG_HTTPS "-NHTTPS" |
Commandline argument to enabled SSL in the nanoHTTP server.
| void hssl_cleanup | ( | struct hsocket_t * | sock | ) |
This function initializes an SSL client socket.
| void hssl_enable | ( | void | ) |
This function enables SSL in the nanoHTTP server. You have to call this function before calling httpd_run().
| int hssl_enabled | ( | void | ) |
This function returns if SSL is enabled in the nanoHTTP server.
| void hssl_module_destroy | ( | void | ) |
| herror_t hssl_module_init | ( | int | argc, | |
| char ** | argv | |||
| ) |
This function initializes the SSL module.
This function reads from an SSL socket.
| void hssl_set_ca_list | ( | const char * | filename | ) |
This function sets the filename for a certification authority list.
| void hssl_set_certificate | ( | const char * | filename | ) |
This function sets the SSL certificate to be used.
| void hssl_set_certpass | ( | const char * | password | ) |
| void hssl_set_user_verify | ( | int | funcX509 *cert | ) |
Called by framework for verification of client or server supplied certificate.
This function writes to an SSL socket.
| int verify_sn | ( | X509 * | cert, | |
| int | who, | |||
| int | nid, | |||
| char * | str | |||
| ) |
Quick function for verifying a portion of the cert nid is any NID_ defined in <openssl/objects.h> returns non-zero if everything went ok