used rsa coeff field in OpenPGP secret key payload
[strongswan.git] / src / libstrongswan / plugins / pubkey / pubkey_public_key.c
index 552fa6c..6d3ae66 100644 (file)
@@ -13,8 +13,6 @@
  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  * for more details.
- *
- * $Id$
  */
 
 #include "pubkey_public_key.h"
@@ -147,7 +145,7 @@ static void add(private_builder_t *this, builder_part_t part, ...)
                                va_start(args, part);
                                pem = va_arg(args, char *);
                                blob = chunk_clone(chunk_create(pem, strlen(pem)));
-                               if (pem_to_bin(&blob, &chunk_empty, &pgp))
+                               if (pem_to_bin(&blob, chunk_empty, &pgp) == SUCCESS)
                                {
                                        this->key = pubkey_public_key_load(chunk_clone(blob));
                                }