Example #1
0
// Returns true if this OID is same the specified OID
func (v *Oid) Equal(o *Oid) bool {
	if o == nil {
		return false
	}
	return asn1.ObjectIdentifier(v.Value).Equal(asn1.ObjectIdentifier(o.Value))
}
Example #2
0
func ToOidString(sub []int) string {
	return asn1.ObjectIdentifier(sub).String()
}
Example #3
0
func (v *Oid) Marshal() ([]byte, error) {
	return asn1.Marshal(asn1.ObjectIdentifier(v.Value))
}