norly...
This commit is contained in:
parent
42be0ee67e
commit
4cc4152223
|
|
@ -96,6 +96,15 @@ extern PSYNC_THREAD int psync_ssl_errno;
|
|||
#define PSYMKEY_INVALID NULL
|
||||
#define PSYMKEY_INVALID_ENC NULL
|
||||
|
||||
typedef struct {
|
||||
mbedtls_net_context srv;
|
||||
mbedtls_ssl_context ssl;
|
||||
mbedtls_ssl_config cfg;
|
||||
int sock;
|
||||
int isbroken;
|
||||
char cachekey[];
|
||||
} pssl_connection_t;
|
||||
|
||||
typedef struct {
|
||||
size_t datalen;
|
||||
unsigned char data[];
|
||||
|
|
@ -116,15 +125,6 @@ typedef pssl_enc_data_t *pssl_enc_symkey_t;
|
|||
typedef pssl_enc_data_t *pssl_rsabinkey_t;
|
||||
typedef pssl_enc_data_t *pssl_signature_t;
|
||||
|
||||
typedef struct {
|
||||
mbedtls_net_context srv;
|
||||
mbedtls_ssl_context ssl;
|
||||
mbedtls_ssl_config cfg;
|
||||
int sock;
|
||||
int isbroken;
|
||||
char cachekey[];
|
||||
} pssl_connection_t;
|
||||
|
||||
typedef void (*psync_ssl_debug_callback_t)(void *ctx, int level, const char *msg, int, const char *);
|
||||
|
||||
// AES
|
||||
|
|
|
|||
Loading…
Reference in New Issue