1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-13 09:07:33 -05:00

Remember to initialise p->nphases to zero in progress report structure.

[originally from svn r1378]
This commit is contained in:
Simon Tatham
2001-11-12 09:19:57 +00:00
parent 818176c66f
commit 5f096142a7
2 changed files with 11 additions and 5 deletions

11
ssh.h
View File

@ -301,11 +301,12 @@ void aes256_decrypt_pubkey(unsigned char *key, unsigned char *blk,
/*
* For progress updates in the key generation utility.
*/
#define PROGFN_LIN_PHASE 1
#define PROGFN_EXP_PHASE 2
#define PROGFN_PHASE_EXTENT 3
#define PROGFN_READY 4
#define PROGFN_PROGRESS 5
#define PROGFN_INITIALISE 1
#define PROGFN_LIN_PHASE 2
#define PROGFN_EXP_PHASE 3
#define PROGFN_PHASE_EXTENT 4
#define PROGFN_READY 5
#define PROGFN_PROGRESS 6
typedef void (*progfn_t) (void *param, int action, int phase, int progress);
int rsa_generate(struct RSAKey *key, int bits, progfn_t pfn,