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.

66 lines
2.4 KiB

  1. /* DER variant of BER */
  2. __inline int ASN1API ASN1DEREncGeneralizedTime(ASN1encoding_t enc, ASN1uint32_t tag, ASN1generalizedtime_t *val)
  3. {
  4. return ASN1CEREncGeneralizedTime(enc, tag, val);
  5. }
  6. __inline int ASN1API ASN1DEREncUTCTime(ASN1encoding_t enc, ASN1uint32_t tag, ASN1utctime_t *val)
  7. {
  8. return ASN1CEREncUTCTime(enc, tag, val);
  9. }
  10. __inline int ASN1API ASN1DEREncBeginBlk(ASN1encoding_t enc, ASN1blocktype_e eBlkType, void **ppBlk)
  11. {
  12. return ASN1CEREncBeginBlk(enc, eBlkType, ppBlk);
  13. }
  14. __inline int ASN1API ASN1DEREncNewBlkElement(void *pBlk, ASN1encoding_t *enc2)
  15. {
  16. return ASN1CEREncNewBlkElement(pBlk, enc2);
  17. }
  18. __inline int ASN1API ASN1DEREncFlushBlkElement(void *pBlk)
  19. {
  20. return ASN1CEREncFlushBlkElement(pBlk);
  21. }
  22. __inline int ASN1API ASN1DEREncEndBlk(void *pBlk)
  23. {
  24. return ASN1CEREncEndBlk(pBlk);
  25. }
  26. __inline int ASN1API ASN1DEREncCharString(ASN1encoding_t enc, ASN1uint32_t tag, ASN1uint32_t len, ASN1char_t *val)
  27. {
  28. return ASN1BEREncCharString(enc, tag, len, val);
  29. }
  30. __inline int ASN1API ASN1DEREncChar16String(ASN1encoding_t enc, ASN1uint32_t tag, ASN1uint32_t len, ASN1char16_t *val)
  31. {
  32. return ASN1BEREncChar16String(enc, tag, len, val);
  33. }
  34. __inline int ASN1API ASN1DEREncChar32String(ASN1encoding_t enc, ASN1uint32_t tag, ASN1uint32_t len, ASN1char32_t *val)
  35. {
  36. return ASN1BEREncChar32String(enc, tag, len, val);
  37. }
  38. __inline int ASN1API ASN1DEREncBitString(ASN1encoding_t enc, ASN1uint32_t tag, ASN1uint32_t len, ASN1octet_t *val)
  39. {
  40. return ASN1BEREncBitString(enc, tag, len, val);
  41. }
  42. __inline int ASN1API ASN1DEREncZeroMultibyteString(ASN1encoding_t enc, ASN1uint32_t tag, ASN1ztcharstring_t val)
  43. {
  44. return ASN1BEREncZeroMultibyteString(enc, tag, val);
  45. }
  46. __inline int ASN1API ASN1DEREncMultibyteString(ASN1encoding_t enc, ASN1uint32_t tag, ASN1charstring_t *val)
  47. {
  48. return ASN1BEREncMultibyteString(enc, tag, val);
  49. }
  50. __inline int ASN1API ASN1DEREncOctetString(ASN1encoding_t enc, ASN1uint32_t tag, ASN1uint32_t len, ASN1octet_t *val)
  51. {
  52. return ASN1BEREncOctetString(enc, tag, len, val);
  53. }
  54. __inline int ASN1API ASN1DEREncUTF8String(ASN1encoding_t enc, ASN1uint32_t tag, ASN1uint32_t length, WCHAR *value)
  55. {
  56. return ASN1BEREncUTF8String(enc, tag, length, value);
  57. }
  58. __inline int ASN1API ASN1CEREncUTF8String(ASN1encoding_t enc, ASN1uint32_t tag, ASN1uint32_t length, WCHAR *value)
  59. {
  60. return ASN1BEREncUTF8String(enc, tag, length, value);
  61. }