nl::Weave::ASN1

這個命名空間包含 Weave 內所有可使用 Abstract Syntax Notation One (ASN.1) 的介面。

摘要

列舉

@334 列舉
ASN1TagClasses 列舉
ASN1UniversalTags 列舉

Typedefs

ASN1_ERROR typedef
所有 ASN1 子系統錯誤的基本類型。

函式

DumpASN1(ASN1Reader & reader, const char *prefix, const char *indent)
FormatASN1Error(char *buf, uint16_t bufSize, int32_t err)
bool
由於發生 ASN1 錯誤,系統會傳回使用者可理解的 NULL 結尾的 C 字串,說明錯誤。
GetEncodedObjectID(OID oid, const uint8_t *& encodedOID, uint16_t & encodedOIDLen)
bool
GetOIDCategory(OID oid)
OIDCategory
GetOIDName(OID oid)
const char *
HighestBit(uint32_t v)
uint8_t
ParseObjectID(const uint8_t *encodedOID, uint16_t encodedOIDLen)
OID
ReverseBits(uint8_t v)
uint8_t
ReverseBits(uint8_t v)
uint8_t
itoa2(uint32_t val, uint8_t *buf)
void

類別

nl::Weave::ASN1::ASN1Reader
nl::Weave::ASN1::ASN1UniversalTime
nl::Weave::ASN1::ASN1Writer

列舉

@334

 @334

ASN1TagClasses

 ASN1TagClasses

ASN1UniversalTags

 ASN1UniversalTags

Typedefs

ASN1_ERROR

ASN1_CONFIG_ERROR_TYPE ASN1_ERROR

所有 ASN1 子系統錯誤的基本類型。

定義為平台或系統專屬類型。

函式

DumpASN1

ASN1_ERROR DumpASN1(
  ASN1Reader & reader,
  const char *prefix,
  const char *indent
)

FormatASN1Error

bool FormatASN1Error(
  char *buf,
  uint16_t bufSize,
  int32_t err
)

由於發生 ASN1 錯誤,系統會傳回使用者可理解的 NULL 結尾的 C 字串,說明錯誤。

詳細說明
參數
[in] buf
出現錯誤字串的緩衝區。
[in] bufSize
提供的緩衝區大小 (以位元組為單位)。
[in] err
要說明的錯誤。
傳回
如果說明字串寫入提供的緩衝區,則傳回 true。
傳回
如果提供的錯誤不是 ASN1 錯誤,則為 false。

GetEncodedObjectID

bool GetEncodedObjectID(
  OID oid,
  const uint8_t *& encodedOID,
  uint16_t & encodedOIDLen
)

GetOIDCategory

OIDCategory GetOIDCategory(
  OID oid
)

GetOIDName

const char * GetOIDName(
  OID oid
)

HighestBit

uint8_t HighestBit(
  uint32_t v
)

ParseObjectID

OID ParseObjectID(
  const uint8_t *encodedOID,
  uint16_t encodedOIDLen
)

ReverseBits

uint8_t ReverseBits(
  uint8_t v
)

ReverseBits

uint8_t ReverseBits(
  uint8_t v
)

itoa2

void itoa2(
  uint32_t val,
  uint8_t *buf
)