mirror of
https://source.quilibrium.com/quilibrium/ceremonyclient.git
synced 2024-11-11 02:35:18 +00:00
23 lines
474 B
Go
23 lines
474 B
Go
|
package libp2ptls
|
||
|
|
||
|
var extensionPrefix = []int{1, 3, 6, 1, 4, 1, 53594}
|
||
|
|
||
|
// getPrefixedExtensionID returns an Object Identifier
|
||
|
// that can be used in x509 Certificates.
|
||
|
func getPrefixedExtensionID(suffix []int) []int {
|
||
|
return append(extensionPrefix, suffix...)
|
||
|
}
|
||
|
|
||
|
// extensionIDEqual compares two extension IDs.
|
||
|
func extensionIDEqual(a, b []int) bool {
|
||
|
if len(a) != len(b) {
|
||
|
return false
|
||
|
}
|
||
|
for i := range a {
|
||
|
if a[i] != b[i] {
|
||
|
return false
|
||
|
}
|
||
|
}
|
||
|
return true
|
||
|
}
|