Commit d9950d01 authored by Marten Seemann's avatar Marten Seemann

use the new Protocol Labs PEN for the certificate extension

parent 2b29f223
package libp2ptls package libp2ptls
// TODO: get an assigment for a valid OID var extensionPrefix = []int{1, 3, 6, 1, 4, 1, 53594}
var extensionPrefix = []int{1, 3, 6, 1, 4, 1, 123456789}
// getPrefixedExtensionID returns an Object Identifier // getPrefixedExtensionID returns an Object Identifier
// that can be used in x509 Certificates. // that can be used in x509 Certificates.
......
...@@ -7,7 +7,7 @@ import ( ...@@ -7,7 +7,7 @@ import (
var _ = Describe("Extensions", func() { var _ = Describe("Extensions", func() {
It("generates a prefixed extension ID", 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() { It("compares extension IDs", func() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment