use the new Protocol Labs PEN for the certificate extension

This commit is contained in:
Marten Seemann 2019-03-14 09:46:12 +09:00
parent afcc2e4cff
commit a2bf05d881
2 changed files with 2 additions and 3 deletions

View File

@ -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.

View File

@ -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() {