nn::ssl::NN_DEFINE_RESULT_CONST_LM Function
NN_DEFINE_RESULT_CONST_LM(
ResultProtocolFailedErr,
detail::MakePermanentResult,
Result::SUMMARY_INVALID_STATE,
EFAILED
);
NN_DEFINE_RESULT_CONST_LM(
ResultWantRead,
detail::MakePermanentResult,
Result::SUMMARY_WOULD_BLOCK,
EWANT_READ
);
NN_DEFINE_RESULT_CONST_LM(
ResultWantWrite,
detail::MakePermanentResult,
Result::SUMMARY_WOULD_BLOCK,
EWANT_WRITE
);
NN_DEFINE_RESULT_CONST_LM(
ResultSystemCallErr,
detail::MakePermanentResult,
Result::SUMMARY_INVALID_STATE,
ESYSCALL
);
NN_DEFINE_RESULT_CONST_LM(
ResultSocketZeroReturnErr,
detail::MakePermanentResult,
Result::SUMMARY_INVALID_STATE,
EZERO_RETURN
);
NN_DEFINE_RESULT_CONST_LM(
ResultWantConnect,
detail::MakePermanentResult,
Result::SUMMARY_WOULD_BLOCK,
EWANT_CONNECT
);
NN_DEFINE_RESULT_CONST_LM(
ResultInternalSslIdErr,
detail::MakePermanentResult,
Result::SUMMARY_INVALID_STATE,
ESSLID
);
NN_DEFINE_RESULT_CONST_LM(
ResultVerifyCertCommonNameErr,
detail::MakePermanentResult,
Result::SUMMARY_INVALID_STATE,
EVERIFY_COMMON_NAME
);
NN_DEFINE_RESULT_CONST_LM(
ResultVerifyCertRootCaErr,
detail::MakePermanentResult,
Result::SUMMARY_INVALID_STATE,
EVERIFY_ROOT_CA
);
NN_DEFINE_RESULT_CONST_LM(
ResultVerifyCertChainErr,
detail::MakePermanentResult,
Result::SUMMARY_INVALID_STATE,
EVERIFY_CHAIN
);
NN_DEFINE_RESULT_CONST_LM(
ResultVerifyCertDateErr,
detail::MakePermanentResult,
Result::SUMMARY_INVALID_STATE,
EVERIFY_DATE
);
NN_DEFINE_RESULT_CONST_LM(
ResultFailToGetServerCert,
detail::MakePermanentResult,
Result::SUMMARY_SUCCESS,
EGET_SERVER_CERT
);
NN_DEFINE_RESULT_CONST_LM(
ResultVerifyCertRevokedErr,
detail::MakePermanentResult,
Result::SUMMARY_INVALID_STATE,
EVERIFY_REVOKED_CERT
);
NN_DEFINE_RESULT_CONST_LM(
ResultLibraryStateErr,
detail::MakePermanentResult,
Result::SUMMARY_INVALID_STATE,
ESTATE
);
NN_DEFINE_RESULT_CONST_LM(
ResultRandomErr,
detail::MakePermanentResult,
Result::SUMMARY_INVALID_STATE,
ERANDOM
);
NN_DEFINE_RESULT_CONST_LM(
ResultVerifyCertErr,
detail::MakePermanentResult,
Result::SUMMARY_INVALID_STATE,
EVERIFY_CERT
);
NN_DEFINE_RESULT_CONST_LM(
ResultAlreadyInitializedErr,
detail::MakePermanentResult,
Result::SUMMARY_INVALID_STATE,
ER_ALREADY_INITIALIZED
);
NN_DEFINE_RESULT_CONST_LM(
ResultNotInitializedErr,
detail::MakePermanentResult,
Result::SUMMARY_INVALID_STATE,
ER_NOT_INITIALIZED
);
NN_DEFINE_RESULT_CONST_LM(
ResultOutOfMemoryErr,
detail::MakePermanentResult,
Result::SUMMARY_INVALID_STATE,
ER_OUT_OF_MEMORY
);
NN_DEFINE_RESULT_CONST_LM(
ResultNotAssignServerErr,
detail::MakePermanentResult,
Result::SUMMARY_INVALID_STATE,
ER_NOT_ASSIGN_SERVER
);
NN_DEFINE_RESULT_CONST_LM(
ResultAlreadyAssignServerErr,
detail::MakePermanentResult,
Result::SUMMARY_INVALID_STATE,
ER_ALREADY_ASSIGN_SERVER
);
NN_DEFINE_RESULT_CONST_LM(
ResultIpcSessionErr,
detail::MakePermanentResult,
Result::SUMMARY_INVALID_STATE,
ER_IPC_SESSION
);
NN_DEFINE_RESULT_CONST_LM(
ResultProcessConnectionMaxErr,
detail::MakePermanentResult,
Result::SUMMARY_INVALID_STATE,
ER_CONN_PROCESS_MAX
);
NN_DEFINE_RESULT_CONST_LM(
ResultFailToCreateCertStoreErr,
detail::MakePermanentResult,
Result::SUMMARY_INVALID_STATE,
ER_FAIL_TO_CREATE_CERT_STORE
);
NN_DEFINE_RESULT_CONST_LM(
ResultFailToCreateCrlStoreErr,
detail::MakePermanentResult,
Result::SUMMARY_INVALID_STATE,
ER_FAIL_TO_CREATE_CRL_STORE
);
NN_DEFINE_RESULT_CONST_LM(
ResultFailToCreateClientCertErr,
detail::MakePermanentResult,
Result::SUMMARY_INVALID_STATE,
ER_FAIL_TO_CREATE_CLIENT_CERT
);
NN_DEFINE_RESULT_CONST_LM(
ResultInvalidParamErr,
detail::MakePermanentResult,
Result::SUMMARY_INVALID_ARGUMENT,
ER_INVALID_PARAM
);
NN_DEFINE_RESULT_CONST_LM(
ResultNotImplementedErr,
detail::MakePermanentResult,
Result::SUMMARY_INTERNAL,
nn::Result::DESCRIPTION_NOT_IMPLEMENTED
);
NN_DEFINE_RESULT_CONST_LM(
ResultClientProcessMaxErr,
detail::MakePermanentResult,
Result::SUMMARY_INVALID_STATE,
ER_CLIENT_PROCESS_MAX
);
NN_DEFINE_RESULT_CONST_LM(
ResultIpcSessionMaxErr,
detail::MakePermanentResult,
Result::SUMMARY_INVALID_STATE,
ER_IPC_SESSION_MAX
);
NN_DEFINE_RESULT_CONST_LM(
ResultInternalCertErr,
detail::MakePermanentResult,
Result::SUMMARY_INVALID_STATE,
ER_INTERNAL_CERT
);
NN_DEFINE_RESULT_CONST_LM(
ResultInternalCrlErr,
detail::MakePermanentResult,
Result::SUMMARY_INVALID_STATE,
ER_INTERNAL_CRL
);
NN_DEFINE_RESULT_CONST_LM(
ResultServerCertBufAlreadySetErr,
detail::MakePermanentResult,
Result::SUMMARY_INVALID_STATE,
ECERT_BUF_ALREADY_SET
);
NN_DEFINE_RESULT_CONST_LM(ResultProtocolFailedErr, detail::MakePermanentResult, Result::SUMMARY_INVALID_STATE, EFAILED)Returns a result that indicates the following error: "Error caused by SSL protocol failure (for example, when client certificate authentication fails on the server side)."
NN_DEFINE_RESULT_CONST_LM(ResultWantRead, detail::MakePermanentResult, Result::SUMMARY_WOULD_BLOCK, EWANT_READ)Returns a result that indicates the following error: "Asynchronous socket is in use and Read function processing is incomplete. (Please try again.)"
NN_DEFINE_RESULT_CONST_LM(ResultWantWrite, detail::MakePermanentResult, Result::SUMMARY_WOULD_BLOCK, EWANT_WRITE)Returns a result that indicates the following error: "Asynchronous socket is in use and Write function processing is incomplete. (Please try again.)"
NN_DEFINE_RESULT_CONST_LM(ResultSystemCallErr, detail::MakePermanentResult, Result::SUMMARY_INVALID_STATE, ESYSCALL)Returns a result that indicates the following error: "Internally used system functions returned an unexpected error."
NN_DEFINE_RESULT_CONST_LM(ResultSocketZeroReturnErr, detail::MakePermanentResult, Result::SUMMARY_INVALID_STATE, EZERO_RETURN)Returns a result that indicates the following error: "When a Read or Write operation was performed on a socket internally, 0 was returned at an unexpected point in the process."
NN_DEFINE_RESULT_CONST_LM(ResultWantConnect, detail::MakePermanentResult, Result::SUMMARY_WOULD_BLOCK, EWANT_CONNECT)Returns a result that indicates the following error: "Asynchronous socket is in use and the SSL handshake (DoHandshake) function processing is incomplete. (Please try again.)"
NN_DEFINE_RESULT_CONST_LM(ResultInternalSslIdErr, detail::MakePermanentResult, Result::SUMMARY_INVALID_STATE, ESSLID)Returns a result indicating the following error: "Internal error (invalid SSLID)."
NN_DEFINE_RESULT_CONST_LM(ResultVerifyCertCommonNameErr, detail::MakePermanentResult, Result::SUMMARY_INVALID_STATE, EVERIFY_COMMON_NAME)Returns a result that indicates the following error: "Server authentication error. The server certificate's CommonName does not match the host name of the communication target server specified by the AssignServer function."
NN_DEFINE_RESULT_CONST_LM(ResultVerifyCertRootCaErr, detail::MakePermanentResult, Result::SUMMARY_INVALID_STATE, EVERIFY_ROOT_CA)Returns a result that indicates the following error: "Server authentication error. The server certificate's Root CA certificate does not match the certificate set by Connection."
NN_DEFINE_RESULT_CONST_LM(ResultVerifyCertChainErr, detail::MakePermanentResult, Result::SUMMARY_INVALID_STATE, EVERIFY_CHAIN)Returns a result that indicates the following error: "Server authentication error. The server certificate's certificate chain is invalid."
NN_DEFINE_RESULT_CONST_LM(ResultVerifyCertDateErr, detail::MakePermanentResult, Result::SUMMARY_INVALID_STATE, EVERIFY_DATE)Returns a result that indicates the following error: "Server authentication error. The server certificate has expired."
NN_DEFINE_RESULT_CONST_LM(ResultFailToGetServerCert, detail::MakePermanentResult, Result::SUMMARY_SUCCESS, EGET_SERVER_CERT)Returns a result that indicates the following error: "Failed to store the certificate data in the buffer. (This occurs when the certificate size in an argument-specified call to the DoHandshake function is larger than the buffer.)"
NN_DEFINE_RESULT_CONST_LM(ResultVerifyCertRevokedErr, detail::MakePermanentResult, Result::SUMMARY_INVALID_STATE, EVERIFY_REVOKED_CERT)Returns a result that indicates the following error: "Server authentication error. The server certificate was found to be registered on the revocation list."
NN_DEFINE_RESULT_CONST_LM(ResultLibraryStateErr, detail::MakePermanentResult, Result::SUMMARY_INVALID_STATE, ESTATE)Returns a result that indicates the following error: "The SSL library is in an invalid state. (Occurs in cases such as when other library functions were called before initialization.)"
NN_DEFINE_RESULT_CONST_LM(ResultRandomErr, detail::MakePermanentResult, Result::SUMMARY_INVALID_STATE, ERANDOM)Returns a result indicating the following error: "Random number processing error."
NN_DEFINE_RESULT_CONST_LM(ResultVerifyCertErr, detail::MakePermanentResult, Result::SUMMARY_INVALID_STATE, EVERIFY_CERT)Returns a result indicating the following error: "Certificate verification failure."
NN_DEFINE_RESULT_CONST_LM(ResultAlreadyInitializedErr, detail::MakePermanentResult, Result::SUMMARY_INVALID_STATE, ER_ALREADY_INITIALIZED)Returns a result indicating the following error: "Library already initialized."
NN_DEFINE_RESULT_CONST_LM(ResultNotInitializedErr, detail::MakePermanentResult, Result::SUMMARY_INVALID_STATE, ER_NOT_INITIALIZED)Returns a Result indicating the following error: "Library not yet initialized."
NN_DEFINE_RESULT_CONST_LM(ResultOutOfMemoryErr, detail::MakePermanentResult, Result::SUMMARY_INVALID_STATE, ER_OUT_OF_MEMORY)Returns a result indicating the following error: "Memory allocation failure."
NN_DEFINE_RESULT_CONST_LM(ResultNotAssignServerErr, detail::MakePermanentResult, Result::SUMMARY_INVALID_STATE, ER_NOT_ASSIGN_SERVER)Returns a result that indicates the following error: "Communication target server has not yet been assigned."
NN_DEFINE_RESULT_CONST_LM(ResultAlreadyAssignServerErr, detail::MakePermanentResult, Result::SUMMARY_INVALID_STATE, ER_ALREADY_ASSIGN_SERVER)Returns a result indicating the following error: "Communication target server has already been assigned."
NN_DEFINE_RESULT_CONST_LM(ResultIpcSessionErr, detail::MakePermanentResult, Result::SUMMARY_INVALID_STATE, ER_IPC_SESSION)Returns a result indicating the following error: "Invalid IPC session."
NN_DEFINE_RESULT_CONST_LM(ResultProcessConnectionMaxErr, detail::MakePermanentResult, Result::SUMMARY_INVALID_STATE, ER_CONN_PROCESS_MAX)Returns a result indicating the following error: "Maximum number of connections that can be used by one process has been exceeded."
NN_DEFINE_RESULT_CONST_LM(ResultFailToCreateCertStoreErr, detail::MakePermanentResult, Result::SUMMARY_INVALID_STATE, ER_FAIL_TO_CREATE_CERT_STORE)Returns a result indicating the following error: "Failed to create the certificate store."
NN_DEFINE_RESULT_CONST_LM(ResultFailToCreateCrlStoreErr, detail::MakePermanentResult, Result::SUMMARY_INVALID_STATE, ER_FAIL_TO_CREATE_CRL_STORE)Returns a result indicating the following error: "Failed to create the CRL store."
NN_DEFINE_RESULT_CONST_LM(ResultFailToCreateClientCertErr, detail::MakePermanentResult, Result::SUMMARY_INVALID_STATE, ER_FAIL_TO_CREATE_CLIENT_CERT)Returns a result indicating the following error: "Failed to create the client certificate."
NN_DEFINE_RESULT_CONST_LM(ResultInvalidParamErr, detail::MakePermanentResult, Result::SUMMARY_INVALID_ARGUMENT, ER_INVALID_PARAM)Returns a result indicating the following error: "Invalid argument."
NN_DEFINE_RESULT_CONST_LM(ResultNotImplementedErr, detail::MakePermanentResult, Result::SUMMARY_INTERNAL, nn::Result::DESCRIPTION_NOT_IMPLEMENTED)Returns a result indicating the following error: "Process not yet implemented." This is an internal implementation error.
NN_DEFINE_RESULT_CONST_LM(ResultClientProcessMaxErr, detail::MakePermanentResult, Result::SUMMARY_INVALID_STATE, ER_CLIENT_PROCESS_MAX)Returns a result indicating the following error: "Number of clients equivalent to maximum number of simultaneous client processes already being used."
NN_DEFINE_RESULT_CONST_LM(ResultIpcSessionMaxErr, detail::MakePermanentResult, Result::SUMMARY_INVALID_STATE, ER_IPC_SESSION_MAX)Returns a result indicating the following error: "Maximum number of simultaneous IPC session connections already connected."
NN_DEFINE_RESULT_CONST_LM(ResultInternalCertErr, detail::MakePermanentResult, Result::SUMMARY_INVALID_STATE, ER_INTERNAL_CERT)Returns a result that indicates the following error: "Failed to use internal certificate."
NN_DEFINE_RESULT_CONST_LM(ResultInternalCrlErr, detail::MakePermanentResult, Result::SUMMARY_INVALID_STATE, ER_INTERNAL_CRL)Returns a result that indicates the following error: "Failed to use built-in CRL."
NN_DEFINE_RESULT_CONST_LM(ResultServerCertBufAlreadySetErr, detail::MakePermanentResult, Result::SUMMARY_INVALID_STATE, ECERT_BUF_ALREADY_SET)Returns a result that indicates the following error: "A buffer has already been configured for the server certificate."
CONFIDENTIAL