mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-21 14:47:03 +01:00
* options.h, mainproc.c (symkey_decrypt_seskey), keyserver.c (struct
keyrec, parse_keyrec, keyserver_search_prompt), keyedit.c (keyedit_menu), g10.c (add_keyserver_url, add_policy_url): Fix some compiler warnings.
This commit is contained in:
parent
bffd021426
commit
69df506b84
@ -1,3 +1,10 @@
|
||||
2004-05-10 David Shaw <dshaw@jabberwocky.com>
|
||||
|
||||
* options.h, mainproc.c (symkey_decrypt_seskey), keyserver.c
|
||||
(struct keyrec, parse_keyrec, keyserver_search_prompt), keyedit.c
|
||||
(keyedit_menu), g10.c (add_keyserver_url, add_policy_url): Fix
|
||||
some compiler warnings.
|
||||
|
||||
2004-05-08 David Shaw <dshaw@jabberwocky.com>
|
||||
|
||||
* keyedit.c (keyedit_menu, menu_set_keyserver_url): Allow passing
|
||||
|
@ -679,8 +679,8 @@ static ARGPARSE_OPTS opts[] = {
|
||||
{ opcscDriver, "pcsc-driver", 2, "@"},
|
||||
{ oDisableCCID, "disable-ccid", 0, "@"},
|
||||
|
||||
{0} };
|
||||
|
||||
{0,NULL,0,NULL}
|
||||
};
|
||||
|
||||
int g10_errors_seen = 0;
|
||||
|
||||
@ -3649,7 +3649,7 @@ add_notation_data( const char *string, int which )
|
||||
static void
|
||||
add_policy_url( const char *string, int which )
|
||||
{
|
||||
int i,critical=0;
|
||||
unsigned int i,critical=0;
|
||||
STRLIST sl;
|
||||
|
||||
if(*string=='!')
|
||||
@ -3682,7 +3682,7 @@ add_policy_url( const char *string, int which )
|
||||
static void
|
||||
add_keyserver_url( const char *string, int which )
|
||||
{
|
||||
int i,critical=0;
|
||||
unsigned int i,critical=0;
|
||||
STRLIST sl;
|
||||
|
||||
if(*string=='!')
|
||||
|
@ -1167,8 +1167,7 @@ keyedit_menu( const char *username, STRLIST locusr,
|
||||
{ N_("disable") , cmdDISABLEKEY, 0,1, N_("disable a key") },
|
||||
{ N_("enable") , cmdENABLEKEY , 0,1, N_("enable a key") },
|
||||
{ N_("showphoto"),cmdSHOWPHOTO , 0,0, N_("show photo ID") },
|
||||
|
||||
{ NULL, cmdNONE } };
|
||||
{ NULL, cmdNONE, 0, 0, NULL } };
|
||||
enum cmdids cmd = 0;
|
||||
int rc = 0;
|
||||
KBNODE keyblock = NULL;
|
||||
|
@ -45,11 +45,11 @@
|
||||
struct keyrec
|
||||
{
|
||||
KEYDB_SEARCH_DESC desc;
|
||||
time_t createtime,expiretime;
|
||||
u32 createtime,expiretime;
|
||||
int size,flags;
|
||||
byte type;
|
||||
IOBUF uidbuf;
|
||||
int lines;
|
||||
unsigned int lines;
|
||||
};
|
||||
|
||||
/* Tell remote processes about these options */
|
||||
@ -427,12 +427,18 @@ parse_keyrec(char *keystring)
|
||||
if((tok=strsep(&keystring,":"))==NULL)
|
||||
return ret;
|
||||
|
||||
work->createtime=atoi(tok);
|
||||
if(atoi(tok)<0)
|
||||
work->createtime=0;
|
||||
else
|
||||
work->createtime=atoi(tok);
|
||||
|
||||
if((tok=strsep(&keystring,":"))==NULL)
|
||||
return ret;
|
||||
|
||||
work->expiretime=atoi(tok);
|
||||
if(atoi(tok)<0)
|
||||
work->expiretime=0;
|
||||
else
|
||||
work->expiretime=atoi(tok);
|
||||
|
||||
if((tok=strsep(&keystring,":"))==NULL)
|
||||
return ret;
|
||||
@ -561,8 +567,8 @@ show_prompt(KEYDB_SEARCH_DESC *desc,int numdesc,int count,const char *search)
|
||||
static void
|
||||
keyserver_search_prompt(IOBUF buffer,const char *searchstr)
|
||||
{
|
||||
int i=0,validcount=0,started=0,header=0,count=1,numlines=0;
|
||||
unsigned int maxlen,buflen;
|
||||
int i=0,validcount=0,started=0,header=0,count=1;
|
||||
unsigned int maxlen,buflen,numlines=0;
|
||||
KEYDB_SEARCH_DESC *desc;
|
||||
byte *line=NULL;
|
||||
|
||||
|
@ -242,7 +242,7 @@ static int
|
||||
symkey_decrypt_seskey( DEK *dek, byte *seskey, size_t slen )
|
||||
{
|
||||
CIPHER_HANDLE hd;
|
||||
int n;
|
||||
unsigned int n;
|
||||
|
||||
if ( slen < 17 || slen > 33 ) {
|
||||
log_error ( _("weird size for an encrypted session key (%d)\n"),
|
||||
|
@ -188,8 +188,8 @@ struct
|
||||
int strict;
|
||||
int mangle_dos_filenames;
|
||||
int enable_progress_filter;
|
||||
int screen_columns;
|
||||
int screen_lines;
|
||||
unsigned int screen_columns;
|
||||
unsigned int screen_lines;
|
||||
|
||||
#ifdef ENABLE_CARD_SUPPORT
|
||||
const char *ctapi_driver; /* Library to access the ctAPI. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user