#include <nitroWiFi/cps.h>
#define CPS_MAX_DN_LEN 255
#define CPS_MAX_CN_LEN 79
#define CPS_MAX_RSA_LEN (2048/8)
#define CPS_MAX_RSA_PUBLICEXPONENT_LEN (64/8)
#define SESSION_LIFETIME CPS_MilliSecondsToLTicks(30*1000) // 30 sec
#define MAX_SESSION 4
#define ssl_blklen (2*1460 - MAX_BLOAT) // can be as long as 16384
static ushort pairlist[] = {
TLS_RSA_WITH_RC4_128_MD5,
TLS_RSA_WITH_RC4_128_SHA,
};
CPS_MAX_DN_LEN |
Maximum length of Distinguished Name. |
CPS_MAX_CN_LEN |
Maximum length of Common Name. |
CPS_MAX_RSA_LEN |
Maximum length (in bytes) of RSA key. The example above supports RSA key lengths that are up to 2048 bits. |
CPS_MAX_RSA_PUBLICEXPONENT_LEN |
Maximum length (in bytes) of the exponent portion of the RSA public key. The example above supports exponents that are up to 64 bits. |
SESSION_LIFETIME |
Lifetime of SSL session cache. |
MAX_SESSION |
Number of entries in SSL session cache. |
ssl_blklen |
Maximum length of plaintext to send. This is the maximum unit of text that is converted to ciphertext and sent. |
ushort pairlist[] |
This list determines the order for supported encryption suites. Presents this order to the server when operating as a client. When operating as a server, checks to see if the list provided by the client exists; if the list exists, it is selected. |
10/24/2005 Initial version.