Added OpenPGP library to lib/silcpgp
[crypto.git] / lib / silcssh / silcssh_pkcs.c
index d2b2a239c3bfa9c6418a2815aa207f51ebe89bfd..d119b3d5d94143ecc08ad5b73369282323361593 100644 (file)
@@ -4,7 +4,7 @@
 
   Author: Pekka Riikonen <priikone@silcnet.org>
 
-  Copyright (C) 2007 Pekka Riikonen
+  Copyright (C) 2007 - 2008 Pekka Riikonen
 
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -17,7 +17,7 @@
 
 */
 
-#include "silc.h"
+#include "silccrypto.h"
 #include "rsa.h"
 #include "dsa.h"
 #include "silcssh_pkcs.h"
@@ -573,8 +573,9 @@ SILC_PKCS_IMPORT_PRIVATE_KEY_FILE(silc_pkcs_ssh_import_private_key_file)
   }
 
   /* Decode the private key */
-  ret = silc_pkcs_ssh_import_private_key(pkcs, alg, filedata, filedata_len,
-                                        (void *)&privkey, ret_alg);
+  ret = silc_pkcs_ssh_import_private_key(pkcs, alg, NULL, 0, filedata, 
+                                        filedata_len, (void *)&privkey,
+                                        ret_alg);
   silc_free(data);
 
   if (ret) {