SharkSSL C/C++ Reference
TLS, cryptography, certificates, and PSA integration
Minnow Server Error Codes

Detailed Description

Error codes returned by functions in the Minnow Server Lib.

Macros

#define MS_ERR_ALLOC   -10
 Allocation error means the SharkSSL buffers are too small when operating in secure mode, or the buffers provided to MSTBuf is too small when operating in non secure mode. More...
 
#define MS_ERR_AUTHENTICATION   -11
 This error code is returned if WssProtocolHandshake::b64Credent is set and an HTTP client provides incorrect credentials. More...
 
#define MS_ERR_HTTP_HEADER_OVERFLOW   -12
 The HTTP request header may be stored in the SharkSSL send buffer. More...
 
#define MS_ERR_INVALID_HTTP   -13
 Received invalid HTTP header from client. More...
 
#define MS_ERR_NOT_WEBSOCKET   -14
 The request was successful, but it is not a WebSocket connection. More...
 
#define MS_ERR_READ   -15
 Socket read error. More...
 
#define MS_ERR_READ_TMO   -16
 Socket read timeout. More...
 
#define MS_ERR_SSL_HANDSHAKE   -17
 The initial SSL handshake failed. More...
 
#define MS_ERR_WRITE   -18
 Socket write error. More...
 
#define MS_ERR_ENCRYPTED_ZIP   -30
 Encrypted ZIP file not supported by ZipFileSystem. More...
 
#define MS_ERR_FILE_IO   -31
 Error reported by MSFetchPage. More...
 
#define MS_ERR_BUF_OVERFLOW   -40
 Incorrect parameter use when calling MS_prepSend and then calling one of MS_sendBin or MS_sendText. More...
 
#define MS_ERR_BUF_UNDERFLOW   -41
 Incorrect parameter use when calling MS_prepSend and then calling one of MS_sendBin or MS_sendText. More...
 

Macro Definition Documentation

◆ MS_ERR_ALLOC

#define MS_ERR_ALLOC   -10

Allocation error means the SharkSSL buffers are too small when operating in secure mode, or the buffers provided to MSTBuf is too small when operating in non secure mode.

◆ MS_ERR_AUTHENTICATION

#define MS_ERR_AUTHENTICATION   -11

This error code is returned if WssProtocolHandshake::b64Credent is set and an HTTP client provides incorrect credentials.

◆ MS_ERR_BUF_OVERFLOW

#define MS_ERR_BUF_OVERFLOW   -40

Incorrect parameter use when calling MS_prepSend and then calling one of MS_sendBin or MS_sendText.

◆ MS_ERR_BUF_UNDERFLOW

#define MS_ERR_BUF_UNDERFLOW   -41

Incorrect parameter use when calling MS_prepSend and then calling one of MS_sendBin or MS_sendText.

◆ MS_ERR_ENCRYPTED_ZIP

#define MS_ERR_ENCRYPTED_ZIP   -30

Encrypted ZIP file not supported by ZipFileSystem.

◆ MS_ERR_FILE_IO

#define MS_ERR_FILE_IO   -31

Error reported by MSFetchPage.

◆ MS_ERR_HTTP_HEADER_OVERFLOW

#define MS_ERR_HTTP_HEADER_OVERFLOW   -12

The HTTP request header may be stored in the SharkSSL send buffer.

This error indicates that the send buffer must be increased.

◆ MS_ERR_INVALID_HTTP

#define MS_ERR_INVALID_HTTP   -13

Received invalid HTTP header from client.

◆ MS_ERR_NOT_WEBSOCKET

#define MS_ERR_NOT_WEBSOCKET   -14

The request was successful, but it is not a WebSocket connection.

◆ MS_ERR_READ

#define MS_ERR_READ   -15

Socket read error.

◆ MS_ERR_READ_TMO

#define MS_ERR_READ_TMO   -16

Socket read timeout.

◆ MS_ERR_SSL_HANDSHAKE

#define MS_ERR_SSL_HANDSHAKE   -17

The initial SSL handshake failed.

◆ MS_ERR_WRITE

#define MS_ERR_WRITE   -18

Socket write error.