Skip to content

Commit

Permalink
pgp siging keys for eldest
Browse files Browse the repository at this point in the history
  • Loading branch information
maxtaco committed Feb 4, 2020
1 parent 656d8f3 commit 6f707ce
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,7 @@
## 2.3.17 (2020-02-04)

- allow PGP signing keys for eldest

## 2.3.16 (2020-01-22)

- Add sig3/Base::get_schema() and schema3/Node::debug_localize for transforming
Expand Down
11 changes: 6 additions & 5 deletions lib/schema3.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/schema3.iced
Expand Up @@ -139,8 +139,8 @@ class KID extends Binary
_check : ({path, obj}) ->
[err, obj] = @_convert_and_check { path, obj }
return err if err?
typ = if @_encryption then 0x21 else 0x20
if obj[0] isnt 0x01 or obj[1] isnt typ or obj[-1...][0] isnt 0x0a
typ = if @_encryption then [0x21] else [0x20, 0x01, 0x11, 0x13, 0x16]
if (obj[0] isnt 0x01) or (obj[1] not in typ) or (obj[-1...][0] isnt 0x0a)
return mkerr path, "value must be a KID#{if @_encryption then ' (for encryption)' else ''}"
return null

Expand Down

0 comments on commit 6f707ce

Please sign in to comment.