From 4a52a71956a8d46fcb7294ac71734504bb09bcc2 Mon Sep 17 00:00:00 2001 From: S. Solomon Darnell Date: Fri, 28 Mar 2025 21:52:21 -0500 Subject: two version of R2R are here --- .../site-packages/pyasn1_modules/rfc5916.py | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .venv/lib/python3.12/site-packages/pyasn1_modules/rfc5916.py (limited to '.venv/lib/python3.12/site-packages/pyasn1_modules/rfc5916.py') diff --git a/.venv/lib/python3.12/site-packages/pyasn1_modules/rfc5916.py b/.venv/lib/python3.12/site-packages/pyasn1_modules/rfc5916.py new file mode 100644 index 00000000..ac23c86b --- /dev/null +++ b/.venv/lib/python3.12/site-packages/pyasn1_modules/rfc5916.py @@ -0,0 +1,35 @@ +# +# This file is part of pyasn1-modules software. +# +# Created by Russ Housley. +# +# Copyright (c) 2019, Vigil Security, LLC +# License: http://snmplabs.com/pyasn1/license.html +# +# Device Owner Attribute +# +# ASN.1 source from: +# https://www.rfc-editor.org/rfc/rfc5916.txt +# + +from pyasn1.type import univ + +from pyasn1_modules import rfc5280 + + +# Device Owner Attribute + +id_deviceOwner = univ.ObjectIdentifier((2, 16, 840, 1, 101, 2, 1, 5, 69)) + +at_deviceOwner = rfc5280.Attribute() +at_deviceOwner['type'] = id_deviceOwner +at_deviceOwner['values'][0] = univ.ObjectIdentifier() + + +# Add to the map of Attribute Type OIDs to Attributes in rfc5280.py. + +_certificateAttributesMapUpdate = { + id_deviceOwner: univ.ObjectIdentifier(), +} + +rfc5280.certificateAttributesMap.update(_certificateAttributesMapUpdate) -- cgit v1.2.3