freebsd-ports/security/pgp6/files/patch-cc
Kirill Ponomarev ea58b3236e - Fix build on 5.x
PR:		ports/61762
Submitted by:	maintainer
2004-01-23 19:15:05 +00:00

19 lines
862 B
Text

--- clients/pgp/cmdline/doencode.c Thu Sep 30 20:10:21 1999
+++ clients/pgp/cmdline/doencode.c Thu Jan 11 20:50:20 2001
@@ -283,6 +283,7 @@
PGPBoolean batchmode = pgpenvGetInt( env, PGPENV_BATCHMODE, &pri, &err );
PGPBoolean verbose = pgpenvGetInt( env, PGPENV_VERBOSE, &pri, &err );
PGPBoolean quietmode = pgpenvGetInt( env, PGPENV_NOOUT, &pri, &err);
+ PGPBoolean force = pgpenvGetInt( env, PGPENV_FORCE, &pri, &err);
PGPKeySetRef tmpset;
err = PGPNewEmptyKeySet( toSet, &tmpset );
@@ -317,7 +318,7 @@
if(verbose)
pgpShowKeyValidity( filebPtr, key );
- if( validity < kPGPValidity_Marginal ) {
+ if( validity < kPGPValidity_Marginal && !force) {
char useridstr[ kPGPMaxUserIDSize ];
PGPBoolean answer;
err = pgpGetUserIDStringFromKey( key, useridstr );