Skip to content

Commit

Permalink
use the new Protocol Labs PEN for the certificate extension
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann committed Mar 14, 2019
1 parent afcc2e4 commit a2bf05d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions p2p/security/tls/extension.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package libp2ptls

// TODO: get an assigment for a valid OID
var extensionPrefix = []int{1, 3, 6, 1, 4, 1, 123456789}
var extensionPrefix = []int{1, 3, 6, 1, 4, 1, 53594}

// getPrefixedExtensionID returns an Object Identifier
// that can be used in x509 Certificates.
Expand Down
2 changes: 1 addition & 1 deletion p2p/security/tls/extension_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

var _ = Describe("Extensions", func() {
It("generates a prefixed extension ID", func() {
Expect(getPrefixedExtensionID([]int{13, 37})).To(Equal([]int{1, 3, 6, 1, 4, 1, 123456789, 13, 37}))
Expect(getPrefixedExtensionID([]int{13, 37})).To(Equal([]int{1, 3, 6, 1, 4, 1, 53594, 13, 37}))
})

It("compares extension IDs", func() {
Expand Down

0 comments on commit a2bf05d

Please sign in to comment.