getattr problem in DSA.py

Igor Belyi <[email protected]>
Newsgroups gmane.comp.python.cryptography
Message-ID <LISTSERV%[email protected]>
Hello, I think there is a problem in DSA.py file distributed in M2Crypto which
prevents from accessing ['p', 'q', 'g', 'pub', 'priv'] fields of the DSA
object.

In the method '__getattr__(self, name)' of the 'class DSA' the line:

method = getattr(m2, 'm2.dsa_get_%s' % (name,))

should acctually be:

method = getattr(m2, 'dsa_get_%s' % (name,))

Sincerely,
Igor
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.