Package totalcross.net.ssl
Interface Constants
-
public interface ConstantsConstants use in the LiteSSL package.
-
-
Field Summary
Fields Modifier and Type Field Description static intSSL_ALERT_BAD_CERTIFICATESSL received a bad certificate.static intSSL_ALERT_BAD_RECORD_MACBad message MAC checksum.static intSSL_ALERT_CLOSE_NOTIFYThe SSL connection has been closed.static intSSL_ALERT_DECODE_ERRORstatic intSSL_ALERT_DECRYPT_ERRORstatic intSSL_ALERT_HANDSHAKE_FAILUREAn SSL handshake failure occurred.static intSSL_ALERT_ILLEGAL_PARAMETERstatic intSSL_ALERT_INVALID_VERSIONstatic intSSL_ALERT_UNEXPECTED_MESSAGEThe SSL encountered an unexpected message.static intSSL_BUILD_ENABLE_CLIENTstatic intSSL_BUILD_ENABLE_VERIFICATIONstatic intSSL_BUILD_FULL_MODEstatic intSSL_BUILD_MODEoffsets to retrieve configuration informationstatic intSSL_BUILD_SERVER_ONLYstatic intSSL_BUILD_SKELETON_MODEbuild mode ids'static intSSL_CLIENT_AUTHENTICATIONEnable the client authentication support in the context.static intSSL_DEFAULT_CLNT_SESSstatic intSSL_DEFAULT_SVR_SESSdefault session sizesstatic intSSL_ERROR_BAD_CERTIFICATEThe certificate is not valid.static intSSL_ERROR_CONN_LOSTThe SSL connection have been lost.static intSSL_ERROR_DEADA fatal error occurred.static intSSL_ERROR_FINISHED_INVALIDstatic intSSL_ERROR_INVALID_HANDSHAKEThe SSL handshake failed.static intSSL_ERROR_INVALID_HMACBad message authentication code.static intSSL_ERROR_INVALID_KEYstatic intSSL_ERROR_INVALID_PROT_MSGAn SSL protocol failure occurred.static intSSL_ERROR_INVALID_SESSIONInvalid session.static intSSL_ERROR_INVALID_VERSIONInvalid version.static intSSL_ERROR_NO_CERT_DEFINEDstatic intSSL_ERROR_NO_CIPHERNo cipher method available.static intSSL_ERROR_NOT_SUPPORTEDstatic intSSL_ERROR_SOCK_SETUP_FAILUREThe underlaying socket couldn't be configured.static intSSL_ERROR_TOO_MANY_CERTSstatic intSSL_HANDSHAKE_IN_PROGRESSSSL handshake is in progress.static intSSL_HAS_PEMstatic intSSL_MAX_CA_CERT_CFG_OFFSETstatic intSSL_MAX_CERT_CFG_OFFSETstatic intSSL_NOT_OKThe operation failed.static intSSL_OBJ_PKCS12PKCS12 certificate or private key.static intSSL_OBJ_PKCS8PKCS8 encrypted private key.static intSSL_OBJ_RSA_KEYRSA private key.static intSSL_OBJ_X509_CACERTX.509 CA certificate.static intSSL_OBJ_X509_CERTX.509 client/server certificate.static intSSL_OKThe operation succeeded.static intSSL_SERVER_VERIFY_LATERDiffer the server authentication in the context.static intSSL_SESSION_ID_SIZEneed to predefine before ssl_lib.h gets to itstatic intSSL_X509_CA_CERT_COMMON_NAMEstatic intSSL_X509_CA_CERT_ORGANIZATIONstatic intSSL_X509_CA_CERT_ORGANIZATIONAL_NAMEstatic intSSL_X509_CERT_COMMON_NAMEX.509/X.520 distinguished name typesstatic intSSL_X509_CERT_ORGANIZATIONstatic intSSL_X509_CERT_ORGANIZATIONAL_NAMEstatic intTLS_RSA_WITH_AES_128_CBC_SHAThe ciphers that are supported.static intTLS_RSA_WITH_AES_256_CBC_SHAstatic intTLS_RSA_WITH_RC4_128_MD5static intTLS_RSA_WITH_RC4_128_SHAstatic intversionstatic java.lang.StringversionStrLibrary version numberstatic intX509_INVALID_PRIV_KEYstatic intX509_NOT_OKX509 verifying errorsstatic intX509_VFY_ERROR_BAD_SIGNATUREstatic intX509_VFY_ERROR_EXPIREDstatic intX509_VFY_ERROR_INVALID_CHAINstatic intX509_VFY_ERROR_NO_TRUSTED_CERTstatic intX509_VFY_ERROR_NOT_YET_VALIDstatic intX509_VFY_ERROR_SELF_SIGNEDstatic intX509_VFY_ERROR_UNSUPPORTED_DIGEST
-
-
-
Field Detail
-
versionStr
static final java.lang.String versionStr
Library version number- See Also:
- Constant Field Values
-
version
static final int version
- See Also:
- Constant Field Values
-
SSL_CLIENT_AUTHENTICATION
static final int SSL_CLIENT_AUTHENTICATION
Enable the client authentication support in the context.- See Also:
- Constant Field Values
-
SSL_SERVER_VERIFY_LATER
static final int SSL_SERVER_VERIFY_LATER
Differ the server authentication in the context.- See Also:
- Constant Field Values
-
SSL_HANDSHAKE_IN_PROGRESS
static final int SSL_HANDSHAKE_IN_PROGRESS
SSL handshake is in progress.- See Also:
- Constant Field Values
-
SSL_OK
static final int SSL_OK
The operation succeeded.- See Also:
- Constant Field Values
-
SSL_NOT_OK
static final int SSL_NOT_OK
The operation failed.- See Also:
- Constant Field Values
-
SSL_ERROR_DEAD
static final int SSL_ERROR_DEAD
A fatal error occurred.- See Also:
- Constant Field Values
-
SSL_ERROR_CONN_LOST
static final int SSL_ERROR_CONN_LOST
The SSL connection have been lost.- See Also:
- Constant Field Values
-
SSL_ERROR_SOCK_SETUP_FAILURE
static final int SSL_ERROR_SOCK_SETUP_FAILURE
The underlaying socket couldn't be configured.- See Also:
- Constant Field Values
-
SSL_ERROR_INVALID_HANDSHAKE
static final int SSL_ERROR_INVALID_HANDSHAKE
The SSL handshake failed.- See Also:
- Constant Field Values
-
SSL_ERROR_INVALID_PROT_MSG
static final int SSL_ERROR_INVALID_PROT_MSG
An SSL protocol failure occurred.- See Also:
- Constant Field Values
-
SSL_ERROR_INVALID_HMAC
static final int SSL_ERROR_INVALID_HMAC
Bad message authentication code.- See Also:
- Constant Field Values
-
SSL_ERROR_INVALID_VERSION
static final int SSL_ERROR_INVALID_VERSION
Invalid version.- See Also:
- Constant Field Values
-
SSL_ERROR_INVALID_SESSION
static final int SSL_ERROR_INVALID_SESSION
Invalid session.- See Also:
- Constant Field Values
-
SSL_ERROR_NO_CIPHER
static final int SSL_ERROR_NO_CIPHER
No cipher method available.- See Also:
- Constant Field Values
-
SSL_ERROR_BAD_CERTIFICATE
static final int SSL_ERROR_BAD_CERTIFICATE
The certificate is not valid.- See Also:
- Constant Field Values
-
SSL_ERROR_INVALID_KEY
static final int SSL_ERROR_INVALID_KEY
- See Also:
- Constant Field Values
-
SSL_ERROR_FINISHED_INVALID
static final int SSL_ERROR_FINISHED_INVALID
- See Also:
- Constant Field Values
-
SSL_ERROR_NO_CERT_DEFINED
static final int SSL_ERROR_NO_CERT_DEFINED
- See Also:
- Constant Field Values
-
SSL_ERROR_TOO_MANY_CERTS
static final int SSL_ERROR_TOO_MANY_CERTS
- See Also:
- Constant Field Values
-
SSL_ERROR_NOT_SUPPORTED
static final int SSL_ERROR_NOT_SUPPORTED
- See Also:
- Constant Field Values
-
X509_NOT_OK
static final int X509_NOT_OK
X509 verifying errors- See Also:
- Constant Field Values
-
X509_VFY_ERROR_NO_TRUSTED_CERT
static final int X509_VFY_ERROR_NO_TRUSTED_CERT
- See Also:
- Constant Field Values
-
X509_VFY_ERROR_BAD_SIGNATURE
static final int X509_VFY_ERROR_BAD_SIGNATURE
- See Also:
- Constant Field Values
-
X509_VFY_ERROR_NOT_YET_VALID
static final int X509_VFY_ERROR_NOT_YET_VALID
- See Also:
- Constant Field Values
-
X509_VFY_ERROR_EXPIRED
static final int X509_VFY_ERROR_EXPIRED
- See Also:
- Constant Field Values
-
X509_VFY_ERROR_SELF_SIGNED
static final int X509_VFY_ERROR_SELF_SIGNED
- See Also:
- Constant Field Values
-
X509_VFY_ERROR_INVALID_CHAIN
static final int X509_VFY_ERROR_INVALID_CHAIN
- See Also:
- Constant Field Values
-
X509_VFY_ERROR_UNSUPPORTED_DIGEST
static final int X509_VFY_ERROR_UNSUPPORTED_DIGEST
- See Also:
- Constant Field Values
-
X509_INVALID_PRIV_KEY
static final int X509_INVALID_PRIV_KEY
- See Also:
- Constant Field Values
-
SSL_ALERT_CLOSE_NOTIFY
static final int SSL_ALERT_CLOSE_NOTIFY
The SSL connection has been closed.- See Also:
- Constant Field Values
-
SSL_ALERT_UNEXPECTED_MESSAGE
static final int SSL_ALERT_UNEXPECTED_MESSAGE
The SSL encountered an unexpected message.- See Also:
- Constant Field Values
-
SSL_ALERT_BAD_RECORD_MAC
static final int SSL_ALERT_BAD_RECORD_MAC
Bad message MAC checksum.- See Also:
- Constant Field Values
-
SSL_ALERT_HANDSHAKE_FAILURE
static final int SSL_ALERT_HANDSHAKE_FAILURE
An SSL handshake failure occurred.- See Also:
- Constant Field Values
-
SSL_ALERT_BAD_CERTIFICATE
static final int SSL_ALERT_BAD_CERTIFICATE
SSL received a bad certificate.- See Also:
- Constant Field Values
-
SSL_ALERT_ILLEGAL_PARAMETER
static final int SSL_ALERT_ILLEGAL_PARAMETER
- See Also:
- Constant Field Values
-
SSL_ALERT_DECODE_ERROR
static final int SSL_ALERT_DECODE_ERROR
- See Also:
- Constant Field Values
-
SSL_ALERT_DECRYPT_ERROR
static final int SSL_ALERT_DECRYPT_ERROR
- See Also:
- Constant Field Values
-
SSL_ALERT_INVALID_VERSION
static final int SSL_ALERT_INVALID_VERSION
- See Also:
- Constant Field Values
-
TLS_RSA_WITH_AES_128_CBC_SHA
static final int TLS_RSA_WITH_AES_128_CBC_SHA
The ciphers that are supported. See http://www.rfc-archive.org/getrfc.php?rfc=3268 and section A.5 in http://www.rfc-archive.org/getrfc.php?rfc=2246- See Also:
- Constant Field Values
-
TLS_RSA_WITH_AES_256_CBC_SHA
static final int TLS_RSA_WITH_AES_256_CBC_SHA
- See Also:
- Constant Field Values
-
TLS_RSA_WITH_RC4_128_SHA
static final int TLS_RSA_WITH_RC4_128_SHA
- See Also:
- Constant Field Values
-
TLS_RSA_WITH_RC4_128_MD5
static final int TLS_RSA_WITH_RC4_128_MD5
- See Also:
- Constant Field Values
-
SSL_BUILD_SKELETON_MODE
static final int SSL_BUILD_SKELETON_MODE
build mode ids'- See Also:
- Constant Field Values
-
SSL_BUILD_SERVER_ONLY
static final int SSL_BUILD_SERVER_ONLY
- See Also:
- Constant Field Values
-
SSL_BUILD_ENABLE_VERIFICATION
static final int SSL_BUILD_ENABLE_VERIFICATION
- See Also:
- Constant Field Values
-
SSL_BUILD_ENABLE_CLIENT
static final int SSL_BUILD_ENABLE_CLIENT
- See Also:
- Constant Field Values
-
SSL_BUILD_FULL_MODE
static final int SSL_BUILD_FULL_MODE
- See Also:
- Constant Field Values
-
SSL_BUILD_MODE
static final int SSL_BUILD_MODE
offsets to retrieve configuration information- See Also:
- Constant Field Values
-
SSL_MAX_CERT_CFG_OFFSET
static final int SSL_MAX_CERT_CFG_OFFSET
- See Also:
- Constant Field Values
-
SSL_MAX_CA_CERT_CFG_OFFSET
static final int SSL_MAX_CA_CERT_CFG_OFFSET
- See Also:
- Constant Field Values
-
SSL_HAS_PEM
static final int SSL_HAS_PEM
- See Also:
- Constant Field Values
-
SSL_DEFAULT_SVR_SESS
static final int SSL_DEFAULT_SVR_SESS
default session sizes- See Also:
- Constant Field Values
-
SSL_DEFAULT_CLNT_SESS
static final int SSL_DEFAULT_CLNT_SESS
- See Also:
- Constant Field Values
-
SSL_X509_CERT_COMMON_NAME
static final int SSL_X509_CERT_COMMON_NAME
X.509/X.520 distinguished name types- See Also:
- Constant Field Values
-
SSL_X509_CERT_ORGANIZATION
static final int SSL_X509_CERT_ORGANIZATION
- See Also:
- Constant Field Values
-
SSL_X509_CERT_ORGANIZATIONAL_NAME
static final int SSL_X509_CERT_ORGANIZATIONAL_NAME
- See Also:
- Constant Field Values
-
SSL_X509_CA_CERT_COMMON_NAME
static final int SSL_X509_CA_CERT_COMMON_NAME
- See Also:
- Constant Field Values
-
SSL_X509_CA_CERT_ORGANIZATION
static final int SSL_X509_CA_CERT_ORGANIZATION
- See Also:
- Constant Field Values
-
SSL_X509_CA_CERT_ORGANIZATIONAL_NAME
static final int SSL_X509_CA_CERT_ORGANIZATIONAL_NAME
- See Also:
- Constant Field Values
-
SSL_OBJ_X509_CERT
static final int SSL_OBJ_X509_CERT
X.509 client/server certificate.- See Also:
- Constant Field Values
-
SSL_OBJ_X509_CACERT
static final int SSL_OBJ_X509_CACERT
X.509 CA certificate.- See Also:
- Constant Field Values
-
SSL_OBJ_RSA_KEY
static final int SSL_OBJ_RSA_KEY
RSA private key.- See Also:
- Constant Field Values
-
SSL_OBJ_PKCS8
static final int SSL_OBJ_PKCS8
PKCS8 encrypted private key.- See Also:
- Constant Field Values
-
SSL_OBJ_PKCS12
static final int SSL_OBJ_PKCS12
PKCS12 certificate or private key.- See Also:
- Constant Field Values
-
SSL_SESSION_ID_SIZE
static final int SSL_SESSION_ID_SIZE
need to predefine before ssl_lib.h gets to it- See Also:
- Constant Field Values
-
-