# coding: utf-8
# PyDERASN -- Python ASN.1 DER codec with abstract structures
-# Copyright (C) 2017 Sergey Matveev <stargrave@stargrave.org>
+# Copyright (C) 2017-2018 Sergey Matveev <stargrave@stargrave.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
from pyderasn import SetOf
from pyderasn import tag_ctxc
from pyderasn import tag_ctxp
+from pyderasn import TeletexString
from pyderasn import UTCTime
pass
+class OrganizationName(Choice):
+ schema = (
+ ('printableString', PrintableString()),
+ ('teletexString', TeletexString()),
+ )
+
+
class AttributeTypeAndValue(Sequence):
schema = (
- ("type", AttributeType()),
+ ("type", AttributeType(defines=(((".", "value"), {
+ ObjectIdentifier("2.5.4.6"): PrintableString(),
+ ObjectIdentifier("2.5.4.8"): PrintableString(),
+ ObjectIdentifier("2.5.4.7"): PrintableString(),
+ ObjectIdentifier("2.5.4.10"): OrganizationName(),
+ ObjectIdentifier("2.5.4.3"): PrintableString(),
+ }),))),
("value", AttributeValue()),
)