use the new Protocol Labs PEN for the certificate extension
This commit is contained in:
parent
afcc2e4cff
commit
a2bf05d881
|
@ -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.
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue