diff options
| author | jsing <> | 2014-07-13 23:36:24 +0000 |
|---|---|---|
| committer | jsing <> | 2014-07-13 23:36:24 +0000 |
| commit | 1165f37d4bd7efd3b30cbb67c69e94960bc3994b (patch) | |
| tree | a51eea524cec30d2fe0552258c574cf0068418d4 /src/lib/libressl/ressl.h | |
| parent | db71c5bf2f35ee4c6899d2c6b5b0a3ed0fa51f98 (diff) | |
| download | openbsd-1165f37d4bd7efd3b30cbb67c69e94960bc3994b.tar.gz openbsd-1165f37d4bd7efd3b30cbb67c69e94960bc3994b.tar.bz2 openbsd-1165f37d4bd7efd3b30cbb67c69e94960bc3994b.zip | |
Add stubs for the proposed server API.
Diffstat (limited to 'src/lib/libressl/ressl.h')
| -rw-r--r-- | src/lib/libressl/ressl.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/libressl/ressl.h b/src/lib/libressl/ressl.h index e7e0a9c51b..dc99368fe6 100644 --- a/src/lib/libressl/ressl.h +++ b/src/lib/libressl/ressl.h | |||
| @@ -37,12 +37,16 @@ void ressl_config_insecure_no_verify(struct ressl_config *config); | |||
| 37 | void ressl_config_verify(struct ressl_config *config); | 37 | void ressl_config_verify(struct ressl_config *config); |
| 38 | 38 | ||
| 39 | struct ressl *ressl_client(void); | 39 | struct ressl *ressl_client(void); |
| 40 | struct ressl *ressl_server(void); | ||
| 40 | int ressl_configure(struct ressl *ctx, struct ressl_config *config); | 41 | int ressl_configure(struct ressl *ctx, struct ressl_config *config); |
| 41 | void ressl_reset(struct ressl *ctx); | 42 | void ressl_reset(struct ressl *ctx); |
| 42 | void ressl_free(struct ressl *ctx); | 43 | void ressl_free(struct ressl *ctx); |
| 43 | 44 | ||
| 45 | int ressl_accept(struct ressl *ctx); | ||
| 46 | int ressl_accept_socket(struct ressl *ctx, int socket); | ||
| 44 | int ressl_connect(struct ressl *ctx, const char *host, const char *port); | 47 | int ressl_connect(struct ressl *ctx, const char *host, const char *port); |
| 45 | int ressl_connect_socket(struct ressl *ctx, int s, const char *hostname); | 48 | int ressl_connect_socket(struct ressl *ctx, int s, const char *hostname); |
| 49 | int ressl_listen(struct ressl *ctx, const char *host, const char *port, int af); | ||
| 46 | int ressl_read(struct ressl *ctx, char *buf, size_t buflen, size_t *outlen); | 50 | int ressl_read(struct ressl *ctx, char *buf, size_t buflen, size_t *outlen); |
| 47 | int ressl_write(struct ressl *ctx, const char *buf, size_t buflen, | 51 | int ressl_write(struct ressl *ctx, const char *buf, size_t buflen, |
| 48 | size_t *outlen); | 52 | size_t *outlen); |
