aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-06-11 16:22:40 +0000
committerlloyd <[email protected]>2010-06-11 16:22:40 +0000
commit238fbfc13c9f703572b31d39a0c9a876ee63c869 (patch)
tree5b571787726419f723ce4c08f662eb1f6c4bf205 /src
parentb7e44b278265b81fa935e0e58a17c684402056bf (diff)
Oops. On a private key, call PKCS8::encode so the full key is exported
Diffstat (limited to 'src')
-rw-r--r--src/wrap/python/rsa.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wrap/python/rsa.cpp b/src/wrap/python/rsa.cpp
index d0053ca5d..8b9fa80ea 100644
--- a/src/wrap/python/rsa.cpp
+++ b/src/wrap/python/rsa.cpp
@@ -40,7 +40,7 @@ class Py_RSA_PrivateKey
{
Pipe out;
out.start_msg();
- X509::encode(*rsa_key, out, RAW_BER);
+ PKCS8::encode(*rsa_key, out, RAW_BER);
out.end_msg();
return out.read_all_as_string();
}