mirror of
https://github.com/certbot/certbot.git
synced 2026-08-01 19:14:54 +02:00
A bit less annoying - you can init a BIO with a string
This commit is contained in:
@@ -303,8 +303,7 @@ class session(object):
|
|||||||
chall.succeeded = (c["satisfied"] == "True") # TODO: this contradicts comment in protocol about meaning of "succeeded"
|
chall.succeeded = (c["satisfied"] == "True") # TODO: this contradicts comment in protocol about meaning of "succeeded"
|
||||||
# Calculate y
|
# Calculate y
|
||||||
dvsni_r = c["dvsni:r"]
|
dvsni_r = c["dvsni:r"]
|
||||||
bio = M2Crypto.BIO.MemoryBuffer()
|
bio = M2Crypto.BIO.MemoryBuffer(self.pubkey())
|
||||||
bio.write(self.pubkey())
|
|
||||||
pubkey = M2Crypto.RSA.load_pub_key_bio(bio)
|
pubkey = M2Crypto.RSA.load_pub_key_bio(bio)
|
||||||
y = pubkey.public_encrypt(dvsni_r, M2Crypto.RSA.pkcs1_oaep_padding)
|
y = pubkey.public_encrypt(dvsni_r, M2Crypto.RSA.pkcs1_oaep_padding)
|
||||||
# In dvsni, we send nonce, y, ext
|
# In dvsni, we send nonce, y, ext
|
||||||
|
|||||||
Reference in New Issue
Block a user