Skip to content
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.

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 2b29f22 commit d9950d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions 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 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 d9950d0

Please sign in to comment.