Re: OBJ_* ASN1_OBJECT functions
Heikki Toivonen <[email protected]>
| Newsgroups | gmane.comp.python.cryptography |
|---|---|
| Message-ID | <[email protected]> |
Pavel Shramov wrote: > As for m2crypto revision 576 (trunk) there are no OBJ_ functions to > manipulate with ASN1_OBJECTS (OIDs). They are needed to convert > X509_Name_Entry to something usable. Since current implementation (after > r538) is much more friendly it's difficult to deal with subjects. > > Maybe attached patch will be useful. Thanks, I'll see about putting this on the trunk soonish. > Also what's your opinion on representing X509 Name and Name Entry as > some native python data types with marshalling functions? > > For example Name Entry is equivalent to native tuple of 2 elements - > OID and Data. Name is list of Name Entries. No binding to OpenSSL > except of marshalling functions for Name and NE. So one may work > with names as native types. As for current state every new > manipulation function, e.g. element deletion, must be > implemented as FFI call of OpenSSL library. It would be great if we didn't need to worry about backwards compatibility. I don't think it can be put into M2Crypto at this point. (It does have one minor weakness, in that tuple is not as self-documenting as a class.) -- Heikki Toivonen
signature.asc
(application/pgp-signature, 254 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGl7tkb8x8KoP+JuwRArAzAKCV3/4He1NMVu3ofdDXMpub4jj6uwCgk6lQ SigdmwYG4+iDenSRHMgg+3M= =lOaE -----END PGP SIGNATURE-----