mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-01-06 11:41:12 +03:00
- Fixed error codes. Negative when needed (SSL error codes). Non-negative if error-codes are OR'ed to other error codes (ASN1, Base64, MPI, DHM). The rest is negative by default.
This commit is contained in:
@@ -23,16 +23,16 @@
|
||||
#ifndef POLARSSL_NET_H
|
||||
#define POLARSSL_NET_H
|
||||
|
||||
#define POLARSSL_ERR_NET_UNKNOWN_HOST 0x0F00
|
||||
#define POLARSSL_ERR_NET_SOCKET_FAILED 0x0F10
|
||||
#define POLARSSL_ERR_NET_CONNECT_FAILED 0x0F20
|
||||
#define POLARSSL_ERR_NET_BIND_FAILED 0x0F30
|
||||
#define POLARSSL_ERR_NET_LISTEN_FAILED 0x0F40
|
||||
#define POLARSSL_ERR_NET_ACCEPT_FAILED 0x0F50
|
||||
#define POLARSSL_ERR_NET_RECV_FAILED 0x0F60
|
||||
#define POLARSSL_ERR_NET_SEND_FAILED 0x0F70
|
||||
#define POLARSSL_ERR_NET_CONN_RESET 0x0F80
|
||||
#define POLARSSL_ERR_NET_TRY_AGAIN 0x0F90
|
||||
#define POLARSSL_ERR_NET_UNKNOWN_HOST -0x0F00
|
||||
#define POLARSSL_ERR_NET_SOCKET_FAILED -0x0F10
|
||||
#define POLARSSL_ERR_NET_CONNECT_FAILED -0x0F20
|
||||
#define POLARSSL_ERR_NET_BIND_FAILED -0x0F30
|
||||
#define POLARSSL_ERR_NET_LISTEN_FAILED -0x0F40
|
||||
#define POLARSSL_ERR_NET_ACCEPT_FAILED -0x0F50
|
||||
#define POLARSSL_ERR_NET_RECV_FAILED -0x0F60
|
||||
#define POLARSSL_ERR_NET_SEND_FAILED -0x0F70
|
||||
#define POLARSSL_ERR_NET_CONN_RESET -0x0F80
|
||||
#define POLARSSL_ERR_NET_TRY_AGAIN -0x0F90
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
Reference in New Issue
Block a user