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.

45 lines
1.1 KiB

  1. // pkiExc.h -- PKI Exception class declaration
  2. // (c) Copyright Schlumberger Technology Corp., unpublished work, created
  3. // 2000. This computer program includes Confidential, Proprietary
  4. // Information and is a Trade Secret of Schlumberger Technology Corp. All
  5. // use, disclosure, and/or reproduction is prohibited unless authorized
  6. // in writing. All Rights Reserved.
  7. #if !defined(PKI_EXC_H)
  8. #define PKI_EXC_H
  9. #include "scuExc.h"
  10. namespace pki
  11. {
  12. enum CauseCode
  13. {
  14. ccBERDataLengthOverflow,
  15. ccBEREmptyOctet,
  16. ccBERInconsistentDataLength,
  17. ccBEROIDSubIdentifierOverflow,
  18. ccBERTagValueOverflow,
  19. ccBERUnexpectedEndOfOctet,
  20. ccBERUnexpectedIndefiniteLength,
  21. ccX509CertExtensionNotPresent,
  22. ccX509CertFormatError,
  23. };
  24. typedef scu::ExcTemplate<scu::Exception::fcPKI, CauseCode> Exception;
  25. /////////////////////////// HELPERS /////////////////////////////////
  26. char const *
  27. Description(Exception const &rExc);
  28. } // namespace pki
  29. inline char const *
  30. pki::Exception::Description() const
  31. {
  32. return pki::Description(*this);
  33. }
  34. #endif // PKI_EXC_H