diff --git a/crypto/external/bsd/netpgp/dist/src/lib/keyring.c b/crypto/external/bsd/netpgp/dist/src/lib/keyring.c index 1c0dcd8c65d9..662f164e77f6 100644 --- a/crypto/external/bsd/netpgp/dist/src/lib/keyring.c +++ b/crypto/external/bsd/netpgp/dist/src/lib/keyring.c @@ -57,7 +57,7 @@ #if defined(__NetBSD__) __COPYRIGHT("@(#) Copyright (c) 2009 The NetBSD Foundation, Inc. All rights reserved."); -__RCSID("$NetBSD: keyring.c,v 1.28 2010/03/05 16:01:09 agc Exp $"); +__RCSID("$NetBSD: keyring.c,v 1.29 2010/03/05 16:30:05 agc Exp $"); #endif #ifdef HAVE_FCNTL_H @@ -975,6 +975,7 @@ __ops_export_key(__ops_io_t *io, const __ops_key_t *keydata, uint8_t *passphrase __ops_memory_t *mem; char *cp; + __OPS_USED(io); __ops_setup_memory_write(&output, &mem, 128); if (keydata->type == OPS_PTAG_CT_PUBLIC_KEY) { __ops_write_xfer_pubkey(output, keydata, 1); diff --git a/crypto/external/bsd/netpgp/dist/src/lib/netpgp.c b/crypto/external/bsd/netpgp/dist/src/lib/netpgp.c index 60ac31f17ed8..fd63398e79ea 100644 --- a/crypto/external/bsd/netpgp/dist/src/lib/netpgp.c +++ b/crypto/external/bsd/netpgp/dist/src/lib/netpgp.c @@ -34,7 +34,7 @@ #if defined(__NetBSD__) __COPYRIGHT("@(#) Copyright (c) 2009 The NetBSD Foundation, Inc. All rights reserved."); -__RCSID("$NetBSD: netpgp.c,v 1.41 2010/03/05 16:01:09 agc Exp $"); +__RCSID("$NetBSD: netpgp.c,v 1.42 2010/03/05 16:30:05 agc Exp $"); #endif #include @@ -725,7 +725,7 @@ netpgp_generate_key(netpgp_t *netpgp, char *id, int numbits) io = netpgp->io; /* generate a new key for 'id' */ uid.userid = (uint8_t *) id; - keypair = __ops_rsa_new_selfsign_key(numbits, (uint32_t) 65537, &uid); + keypair = __ops_rsa_new_selfsign_key(numbits, 65537UL, &uid); if (keypair == NULL) { (void) fprintf(io->errs, "Cannot generate key\n"); return 0;