Skip to content

Commit

Permalink
MINOR : some ssl functions added
Browse files Browse the repository at this point in the history
  • Loading branch information
krasnov committed Oct 30, 2008
1 parent 0f3b41f commit e43a438
Show file tree
Hide file tree
Showing 3 changed files with 463 additions and 78 deletions.
7 changes: 3 additions & 4 deletions libvzsock.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,8 @@ struct vzsock_ctx {
#define VZSOCK_DATA_CRTFILE 9 /* certificate file name */
#define VZSOCK_DATA_KEYFILE 10 /* private key file name */
#define VZSOCK_DATA_CIPHERS 11 /* ciphers list */
#define VZSOCK_DATA_MODE 12 /* server or client */
#define VZSOCK_MODE_CLIENT 0
#define VZSOCK_MODE_SERVER 1

#define VZSOCK_DATA_CAFILE 12 /* CA certificate file */
#define VZSOCK_DATA_CAPATH 13 /* CA certificate path */

/* errors code */
#define VZS_ERR_SYSTEM 1
Expand All @@ -64,6 +62,7 @@ struct vzsock_ctx {
#define VZS_ERR_TIMEOUT 4 /* timeout exceeded */
#define VZS_ERR_CONN_BROKEN 5
#define VZS_ERR_TOOLONG 6 /* too long message */
#define VZS_ERR_SSL 7 /* SSL error */

#ifdef __cplusplus
extern "C" {
Expand Down
Loading

0 comments on commit e43a438

Please sign in to comment.