Project

General

Profile

Feature #3058

Updated by Junxiao Shi almost 9 years ago

As we defined in new [certificate format](https://github.com/named-data/ndn-cxx/blob/feature-cert/docs/tutorials/certificate-format.rst) #2861, certificate format (http://gerrit.named-data.net/#/c/2101/, http://redmine.named-data.net/issues/2861), there will be an non-critical extension AdditionalDescription. As defined in the certificate spec:  

 > AdditionalDescription is a non-critical extension that provides additional 
 > information about the certificate.    The information is expressed as a set of 
 > key-value pairs.    Both key and value are UTF-8 strings, e.g., 
 > ("Organization", "UCLA"). The issuer of a certificate can specify arbitrary 
 > key-value pair to provide additional description about the certificate. 

     AdditionalDescription ::= ADDITIONAL-DESCRIPTION-TYPE TLV-LENGTH 
                                 DescriptionEntry+ 

     DescriptionEntry ::= DESCRIPTION-ENTRY-TYPE TLV-LENGTH 
                            DescriptionKey 
                            DescriptionValue 

     DescriptionKey ::= DESCRIPTION-KEY-TYPE TLV-LENGTH 
                          BYTE+ 

     DescriptionValue ::= DESCRIPTION-VALUE-TYPE TLV-LENGTH 
                            BYTE+ 


  TLV-TYPE                | Assigned code (decimal) | Assigned code (hexadecimal)  
 -----------------------|-------------------------|----------------------------- 
  AdditionalDescription | 258                       | 0x0102 
  DescriptionEntry        | 512                       | 0x0200  
  DescriptionKey          | 513                       | 0x0201          
  DescriptionValue        | 514                       | 0x0202          
                      

Back