File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @tls/enum" ,
3- "version" : " 0.3.1 " ,
3+ "version" : " 0.3.2 " ,
44 "exports" : " ./src/mod.ts" ,
55 "publish" : {
66 "exclude" : [" dist/" ]
Original file line number Diff line number Diff line change @@ -102,7 +102,8 @@ class Certificate_list extends Constrained {
102102 static from ( array ) {
103103 const copy = Uint8Array . from ( array ) ;
104104 const lengthOf = Uint24 . from ( copy ) . value ;
105- return new Certificate_list ( copy . subarray ( 3 , lengthOf + 3 ) )
105+ const certificateEntry = CertificateEntry . from ( copy . subarray ( 3 , lengthOf + 3 ) ) ;
106+ return new Certificate_list ( certificateEntry )
106107 }
107108 constructor ( ...certificateEntry ) {
108109 super ( 0 , 2 ** 24 - 1 , ...certificateEntry ) ;
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { Certificate } from "../src/certificatetype.js";
22import { Handshake } from "../src/handshaketype.js" ;
33import { HexaDecimal } from "../src/dep.ts" ;
44
5- const test = Certificate . from ( HexaDecimal . fromString ( `0b 00 01 b9 00 00 01 b5 00 01 b0 30 82
5+ const test = Handshake . from ( HexaDecimal . fromString ( `0b 00 01 b9 00 00 01 b5 00 01 b0 30 82
66 01 ac 30 82 01 15 a0 03 02 01 02 02 01 02 30 0d 06 09 2a 86 48
77 86 f7 0d 01 01 0b 05 00 30 0e 31 0c 30 0a 06 03 55 04 03 13 03
88 72 73 61 30 1e 17 0d 31 36 30 37 33 30 30 31 32 33 35 39 5a 17
@@ -24,3 +24,5 @@ const test = Certificate.from(HexaDecimal.fromString(`0b 00 01 b9 00 00 01 b5 00
2424 c1 fc 63 a4 2a 99 be 5c 3e b7 10 7c 3c 54 e9 b9 eb 2b d5 20 3b
2525 1c 3b 84 e0 a8 b2 f7 59 40 9b a3 ea c9 d9 1d 40 2d cc 0c c8 f8
2626 96 12 29 ac 91 87 b4 2b 4d e1 00 00` ) . byte )
27+
28+ const certificate = Certificate . from ( test . message )
You can’t perform that action at this time.
0 commit comments