aboutsummaryrefslogtreecommitdiffstats
path: root/src/scepclient/scepclient.c
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2009-08-24 14:19:16 +0200
committerMartin Willi <martin@strongswan.org>2009-08-26 11:23:52 +0200
commit5bceb90c8660d7e6f33b1c9d3996d836918945e3 (patch)
tree9f5efd5d00fe91e0a4f8889c3d6945ec161a6443 /src/scepclient/scepclient.c
parent8d09681559f4e4745b26a18f303fe0963e0c4f43 (diff)
downloadstrongswan-5bceb90c8660d7e6f33b1c9d3996d836918945e3.tar.bz2
strongswan-5bceb90c8660d7e6f33b1c9d3996d836918945e3.tar.xz
updated scepclient to new encoding API
Diffstat (limited to 'src/scepclient/scepclient.c')
-rw-r--r--src/scepclient/scepclient.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/scepclient/scepclient.c b/src/scepclient/scepclient.c
index 6c0166d66..ca6b07065 100644
--- a/src/scepclient/scepclient.c
+++ b/src/scepclient/scepclient.c
@@ -896,9 +896,8 @@ int main(int argc, char **argv)
DBG(DBG_CONTROL,
DBG_log("building pkcs1 object:")
)
- pkcs1 = private_key->get_encoding(private_key);
-
- if (!chunk_write(pkcs1, path, "pkcs1", 0066, force))
+ if (!private_key->get_encoding(private_key, KEY_PRIV_ASN1_DER, &pkcs1) ||
+ !chunk_write(pkcs1, path, "pkcs1", 0066, force))
exit_scepclient("could not write pkcs1 file '%s'", path);
filetype_out &= ~PKCS1; /* delete PKCS1 flag */