sydapi/DProto/6E.xml
2021-06-29 11:32:24 +08:00

93 lines
2.2 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="UTF-8" ?>
<packet extend="base">
<req>
<command>
<hex>6E</hex>
</command>
<data extend="data">
<certificateModel len="1" cn="证书类型">
<options>
<option cn="签名证书">
<hex>0</hex>
</option>
<option cn="加密证书">
<hex>1</hex>
</option>
</options>
</certificateModel>
<dnLen len="4" :value="dnLen()" cn="DN 长度">
DN 长度 n
</dnLen>
<certificateDn :len="strlen()" cn="DN">
Subject
</certificateDn>
<tailSep len="1" :if=" null != $packet.data.tail " cn="尾分隔">
可选项。如果显示消息尾域,则该域必须显示。值为
“X19”。
<hex>19</hex>
</tailSep>
<tail maxLen="32" required="false" cn="尾部">
可选项。最大长度为 32个字符。
</tail>
</data>
</req>
<res>
<command>
<hex>6F</hex>
</command>
<data>
<error len="2" cn="错误码" format="X" :catch="catchError('%s')">
<options>
<option cn="无错误">
<hex>00</hex>
</option>
<option cn="无效的DN">
<hex>21</hex>
</option>
<option cn="输入数据长度错误">
<hex>80</hex>
</option>
</options>
</error>
<snLen len="4" cn="SN 长度">
签名长度
</snLen>
<sn :len="snLength()" cn="SN">
SN
</sn>
<tailSep len="1" required="false" cn="尾分隔">
可选项。如果显示消息尾域,则该域必须显示。值为 “X19”。
<hex>19</hex>
</tailSep>
<tail maxLen="32" required="false" cn="尾部">
可选项。最大长度为 32个字符。
</tail>
</data>
</res>
<script>function dnLen() {
return $packet.data.certificateDn.length
}
function snLength() {
return Util.a2i( $final.getSection('data').getSection('snLen') )
} </script>
</packet>