From a2bf05d8819975bf957d7c6c5e367011f668da85 Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Thu, 14 Mar 2019 09:46:12 +0900 Subject: [PATCH] use the new Protocol Labs PEN for the certificate extension --- p2p/security/tls/extension.go | 3 +-- p2p/security/tls/extension_test.go | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/p2p/security/tls/extension.go b/p2p/security/tls/extension.go index 33c106d9..9472c77e 100644 --- a/p2p/security/tls/extension.go +++ b/p2p/security/tls/extension.go @@ -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. diff --git a/p2p/security/tls/extension_test.go b/p2p/security/tls/extension_test.go index 425e8f4a..5a7ef477 100644 --- a/p2p/security/tls/extension_test.go +++ b/p2p/security/tls/extension_test.go @@ -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() {