NetBurner 3.5.8
PDF Version
Toggle main menu visibility
CryptoServer.h
1
/*NB_REVISION*/
2
3
/*NB_COPYRIGHT*/
4
5
#ifndef _CRYPTO_SERVER_H_
6
#define _CRYPTO_SERVER_H_
7
8
#include <predef.h>
9
#if defined(NB_SSL_SUPPORTED) || defined(NB_SSH_SUPPORTED)
10
11
#include <crypto/NetBurner/CryptoSocket.h>
12
13
14
enum
CryptoServerErrors : int16_t
15
{
16
eCryptoServerErrorInvalidSocketType = -1
17
};
18
19
enum
CryptoQueueAction :
unsigned
char
20
{
21
eCryptoQueueActionError = 1,
22
eCryptoQueueActionTcpRead = 2,
23
eCryptoQueueActionTcpClose = 3,
24
eCryptoQueueActionExtraFdClose = 4
25
};
26
27
int
ioReturnCode(
int
n,
int
tcpFd, SocketType_t sockType);
28
29
void
InitCryptoServer();
30
void
PostCryptoQueueData(CryptoSocket *sck, CryptoQueueAction action);
31
32
void
CryptoReadNotify(
int
fd);
33
void
CryptoWriteNotify(
int
fd);
34
35
int
WolfCryptoCbIoRecv(
int
tcp,
char
*buf,
int
len,
void
*ctx, SocketType_t sckType);
36
int
WolfCryptoCbIoSend(
int
tcp,
char
*buf,
int
len,
void
*ctx, SocketType_t sckType);
37
38
int
WolfCryptoExtraFdRead(
int
fd,
char
*buf,
int
nbytes);
39
int
WolfCryptoExtraFdWrite(
int
fd,
const
char
*buf,
int
nbytes);
40
int
WolfCryptoExtraFdClose(
int
extra_fd);
41
42
#endif
// NB_SSL_SUPPORTED || NB_SSH_SUPPORTED
43
#endif
//_CRYPTO_SERVER_H_
libraries
include
crypto
NetBurner
CryptoServer.h
Generated by
1.18.0