SSPI Status Codes

The following status codes are used in SSPI applications and defined in Winerror.h.

SymbolicCodeDescription
SEC_E_ALGORITHM_MISMATCHThe client and server cannot communicate because they do not possess a common algorithm.
SEC_E_BAD_BINDINGSThe SSPI channel bindings supplied by the client are incorrect.
SEC_E_BAD_PKGIDThe requested package identifier does not exist.
SEC_E_BUFFER_TOO_SMALLThe buffers supplied to the function are not large enough to contain the information.
SEC_E_CANNOT_INSTALLThe security package cannot initialize successfully and should not be installed.
SEC_E_CANNOT_PACKThe package is unable to pack the context.
SEC_E_CERT_EXPIREDThe received certificate has expired.
SEC_E_CERT_UNKNOWNAn unknown error occurred while processing the certificate.
SEC_E_CERT_WRONG_USAGEThe certificate is not valid for the requested usage.
SEC_E_CONTEXT_EXPIREDThe application is referencing a context that has already been closed. A properly written application should not receive this error.
SEC_E_CROSSREALM_DELEGATION_FAILUREThe server attempted to make a Kerberos-constrained delegation request for a target outside the server's realm.
SEC_E_CRYPTO_SYSTEM_INVALIDThe cryptographic system or checksum function is not valid because a required function is unavailable.
SEC_E_DECRYPT_FAILUREThe specified data could not be decrypted.
SEC_E_DELEGATION_REQUIREDThe requested operation cannot be completed. The computer must be trusted for delegation, and the current user account must be configured to allow delegation.
SEC_E_DOWNGRADE_DETECTEDThe system detected a possible attempt to compromise security. Verify that the server that authenticated you can be contacted. NOTE: This error can be generated simply due to lack of connectivity to a domain controller and may not be indicative of malicious activity.
SEC_E_ENCRYPT_FAILUREThe specified data could not be encrypted.
SEC_E_ILLEGAL_MESSAGEThe message received was unexpected or badly formatted.
SEC_E_INCOMPLETE_CREDENTIALSThe credentials supplied were not complete and could not be verified. The context could not be initialized.
SEC_E_INCOMPLETE_MESSAGEThe message supplied was incomplete. The signature was not verified.
SEC_E_INSUFFICIENT_MEMORYNot enough memory is available to complete the request.
SEC_E_INTERNAL_ERRORAn error occurred that did not map to an SSPI error code.
SEC_E_INVALID_HANDLEThe handle passed to the function is not valid.
SEC_E_INVALID_TOKENThe token passed to the function is not valid.
SEC_E_ISSUING_CA_UNTRUSTEDAn untrusted certification authority (CA) was detected while processing the smart card certificate used for authentication.
SEC_E_ISSUING_CA_UNTRUSTED_KDCAn untrusted CA was detected while processing the domain controller certificate used for authentication. The system event log contains additional information.
SEC_E_KDC_CERT_EXPIREDThe domain controller certificate used for smart card logon has expired.
SEC_E_KDC_CERT_REVOKEDThe domain controller certificate used for smart card logon has been revoked.
SEC_E_KDC_INVALID_REQUESTA request that is not valid was sent to the KDC.
SEC_E_KDC_UNABLE_TO_REFERThe KDC was unable to generate a referral for the service requested.
SEC_E_KDC_UNKNOWN_ETYPEThe requested encryption type is not supported by the KDC.
SEC_E_LOGON_DENIEDThis status code is obsolete.
SEC_E_MAX_REFERRALS_EXCEEDEDThe number of maximum ticket referrals has been exceeded.
SEC_E_MESSAGE_ALTEREDThe message supplied for verification has been altered.
SEC_E_MULTIPLE_ACCOUNTSThe received certificate was mapped to multiple accounts.
SEC_E_MUST_BE_KDCThe local computer must be a Kerberos domain controller (KDC), but it is not.
SEC_E_NO_AUTHENTICATING_AUTHORITYNo authority could be contacted for authentication.
SEC_E_NO_CREDENTIALSNo credentials are available.
SEC_E_NO_IMPERSONATIONNo impersonation is allowed for this context.
SEC_E_NO_IP_ADDRESSESUnable to accomplish the requested task because the local computer does not have any IP addresses.
SEC_E_NO_KERB_KEYNo Kerberos key was found.
SEC_E_NO_PA_DATAPolicy administrator (PA) data is needed to determine the encryption type, but cannot be found.
SEC_E_NO_S4U_PROT_SUPPORTThe Kerberos subsystem encountered an error. A service for user protocol request was made against a domain controller which does not support service for a user.
SEC_E_NO_TGT_REPLYThe client is trying to negotiate a context and the server requires a user-to-user connection, but did not send a TGT reply.
SEC_E_NOT_OWNERThe caller of the function does not own the credentials.
SEC_E_NOT_SUPPORTEDThe request is not supported.
SEC_E_OKThe operation completed successfully.
SEC_E_OUT_OF_SEQUENCEThe message supplied for verification is out of sequence.
SEC_E_PKINIT_CLIENT_FAILUREThe smart card certificate used for authentication is not trusted.
SEC_E_PKINIT_NAME_MISMATCHThe client certificate does not contain a valid UPN or does not match the client name in the logon request.
SEC_E_QOP_NOT_SUPPORTEDThe quality of protection attribute is not supported by this package.
SEC_E_REVOCATION_OFFLINE_CThe revocation status of the smart card certificate used for authentication could not be determined.
SEC_E_REVOCATION_OFFLINE_KDCThe revocation status of the domain controller certificate used for smart card authentication could not be determined. The system event log contains additional information.
SEC_E_SECPKG_NOT_FOUNDThe security package was not recognized.
SEC_E_SECURITY_QOS_FAILEDThe security context could not be established due to a failure in the requested quality of service (for example, mutual authentication or delegation).
SEC_E_SHUTDOWN_IN_PROGRESSA system shutdown is in progress.
SEC_E_SMARTCARD_CERT_EXPIREDThe smart card certificate used for authentication has expired.
SEC_E_SMARTCARD_CERT_REVOKEDThe smart card certificate used for authentication has been revoked. Additional information may exist in the event log.
SEC_E_SMARTCARD_LOGON_REQUIREDSmart card logon is required and was not used.
SEC_E_STRONG_CRYPTO_NOT_SUPPORTEDThe other end of the security negotiation requires strong cryptography, but it is not supported on the local machine.
SEC_E_TARGET_UNKNOWNThe target was not recognized.
SEC_E_TIME_SKEWThe clocks on the client and server computers do not match.
SEC_E_TOO_MANY_PRINCIPALSThe KDC reply contained more than one principal name.
SEC_E_UNFINISHED_CONTEXT_DELETEDA security context was deleted before the context was completed. This is considered a logon failure.
SEC_E_UNKNOWN_CREDENTIALSThe credentials provided were not recognized.
SEC_E_UNSUPPORTED_FUNCTIONThe requested function is not supported.
SEC_E_UNSUPPORTED_PREAUTHAn unsupported preauthentication mechanism was presented to the Kerberos package.
SEC_E_UNTRUSTED_ROOTThe certificate chain was issued by an authority that is not trusted.
SEC_E_WRONG_CREDENTIAL_HANDLEThe supplied credential handle does not match the credential associated with the security context.
SEC_E_WRONG_PRINCIPALThe target principal name is incorrect.
SEC_I_COMPLETE_AND_CONTINUEThe function completed successfully, but the application must call both CompleteAuthToken and then either InitializeSecurityContext (General) or AcceptSecurityContext (General) again to complete the context.
SEC_I_COMPLETE_NEEDEDThe function completed successfully, but you must call the CompleteAuthToken function on the final message.
SEC_I_CONTEXT_EXPIREDThe message sender has finished using the connection and has initiated a shutdown. For information about initiating or recognizing a shutdown, see Shutting Down an Schannel Connection .
SEC_I_CONTINUE_NEEDEDThe function completed successfully, but you must call this function again to complete the context.
SEC_I_INCOMPLETE_CREDENTIALSThe credentials supplied were not complete and could not be verified. Additional information can be returned from the context.
SEC_I_LOCAL_LOGONThe logon was completed, but no network authority was available. The logon was made using locally known information.
SEC_I_NO_LSA_CONTEXTThere is no LSA mode context associated with this context.
SEC_I_RENEGOTIATEThe context data must be renegotiated with the peer.
77 entries

Article text from the Win32 documentation (opens in a new tab), by Microsoft, under the CC BY 4.0 (opens in a new tab) licence.