mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-12-24 17:41:01 +03:00
- Major change: Errors are now positive numbers instead of negative.
Reason: You cannot OR negative values correctly
This commit is contained in:
@@ -22,16 +22,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