Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
2.2 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1995.
  5. //
  6. // File: sperr.c
  7. //
  8. // Contents: Schannel internal error codes.
  9. //
  10. // Classes:
  11. //
  12. // Functions:
  13. //
  14. // History:
  15. //
  16. //----------------------------------------------------------------------------
  17. /* We really have to straighten out
  18. * the error message situation */
  19. /* basic error codes, for transmission over the
  20. * communications channel */
  21. #define PCT_ERR_OK 0x0000
  22. #define PCT_ERR_BAD_CERTIFICATE 0x0001
  23. #define PCT_ERR_CLIENT_AUTH_FAILED 0x0002
  24. #define PCT_ERR_ILLEGAL_MESSAGE 0x0003
  25. #define PCT_ERR_INTEGRITY_CHECK_FAILED 0x0004
  26. #define PCT_ERR_SERVER_AUTH_FAILED 0x0005
  27. #define PCT_ERR_SPECS_MISMATCH 0x0006
  28. #define PCT_ERR_SSL_STYLE_MSG 0x00ff
  29. #define PCT_ERR_RENEGOTIATE 0x0008
  30. #define PCT_ERR_UNKNOWN_CREDENTIAL 0x0009
  31. #define PCT_ERR_EXPIRED 0x000a
  32. /* internal error codes, for communications with
  33. * the application */
  34. #define PCT_INT_BUFF_TOO_SMALL 0x40000000
  35. #define PCT_INT_INCOMPLETE_MSG 0x40000001 /* this specifies to the comm layer to pass
  36. * more data */
  37. #define PCT_INT_DROP_CONNECTION 0x80000000
  38. #define PCT_INT_BAD_CERT (PCT_INT_DROP_CONNECTION | PCT_ERR_BAD_CERTIFICATE)
  39. #define PCT_INT_CLI_AUTH (PCT_INT_DROP_CONNECTION | PCT_ERR_CLIENT_AUTH_FAILED)
  40. #define PCT_INT_ILLEGAL_MSG (PCT_INT_DROP_CONNECTION | PCT_ERR_ILLEGAL_MESSAGE)
  41. #define PCT_INT_MSG_ALTERED 0x80000101
  42. #define PCT_INT_INTERNAL_ERROR 0xffffffff
  43. #define PCT_INT_DATA_OVERFLOW 0x80000102
  44. #define PCT_INT_SPECS_MISMATCH (PCT_INT_DROP_CONNECTION | PCT_ERR_SPECS_MISMATCH)
  45. #define PCT_INT_RENEGOTIATE (PCT_INT_DROP_CONNECTION | PCT_ERR_RENEGOTIATE)
  46. #define PCT_INT_UNKNOWN_CREDENTIAL (PCT_INT_DROP_CONNECTION | PCT_ERR_UNKNOWN_CREDENTIAL)
  47. #define PCT_INT_EXPIRED (PCT_INT_DROP_CONNECTION | PCT_ERR_EXPIRED)
  48. #define SP_FATAL(s) (PCT_INT_DROP_CONNECTION & (s))