C library for SOAP (Simple Object Access Protocol)


nanohttp-ssl.h File Reference

Go to the source code of this file.

Defines

#define NHTTPD_ARG_HTTPS   "-NHTTPS"
#define HSSL_ERROR   1700
#define HSSL_ERROR_CA_LIST   (HSSL_ERROR + 10)
#define HSSL_ERROR_CONTEXT   (HSSL_ERROR + 20)
#define HSSL_ERROR_CERTIFICATE   (HSSL_ERROR + 30)
#define HSSL_ERROR_PEM   (HSSL_ERROR + 40)
#define HSSL_ERROR_CLIENT   (HSSL_ERROR + 50)
#define HSSL_ERROR_SERVER   (HSSL_ERROR + 60)
#define HSSL_ERROR_CONNECT   (HSSL_ERROR + 70)
#define HSSL_ERROR_SSLCLOSE   (HSSL_ERROR + 80)
#define HSSL_ERROR_SSLCTX   (HSSL_ERROR + 90)

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)


Detailed Description

SSL wrapper

csoap project homepage: http://csoap.sourceforge.net