X-Git-Url: http://www.git.cypherpunks.ru/?p=pygost.git;a=blobdiff_plain;f=pygost%2Fasn1schemas%2Fx509.py;h=7977c31345ef4cc37e6fe0abe27c3d65114fc0cd;hp=a934a58d52413cafd51834ed6088e02dabd757e1;hb=c77746f7982c41953bfbc06b28dceceda88042e9;hpb=6650aa37ce30a08be41c148cbd7b7b6beba49ecc diff --git a/pygost/asn1schemas/x509.py b/pygost/asn1schemas/x509.py index a934a58..7977c31 100644 --- a/pygost/asn1schemas/x509.py +++ b/pygost/asn1schemas/x509.py @@ -35,6 +35,12 @@ from pyderasn import tag_ctxp from pyderasn import TeletexString from pyderasn import UTCTime +from pygost.asn1schemas.oids import id_at_commonName +from pygost.asn1schemas.oids import id_at_countryName +from pygost.asn1schemas.oids import id_at_localityName +from pygost.asn1schemas.oids import id_at_organizationName +from pygost.asn1schemas.oids import id_at_stateOrProvinceName + class Version(Integer): schema = ( @@ -73,11 +79,11 @@ class OrganizationName(Choice): class AttributeTypeAndValue(Sequence): schema = ( ("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(), + id_at_countryName: PrintableString(), + id_at_stateOrProvinceName: PrintableString(), + id_at_localityName: PrintableString(), + id_at_organizationName: OrganizationName(), + id_at_commonName: PrintableString(), }),))), ("value", AttributeValue()), )