version 1.52, 2001/03/06 00:33:04 |
version 1.53, 2001/03/26 23:23:24 |
|
|
} |
} |
|
|
void |
void |
generate_additional_parameters(RSA *rsa) |
|
{ |
|
BIGNUM *aux; |
|
BN_CTX *ctx; |
|
/* Generate additional parameters */ |
|
aux = BN_new(); |
|
ctx = BN_CTX_new(); |
|
|
|
BN_sub(aux, rsa->q, BN_value_one()); |
|
BN_mod(rsa->dmq1, rsa->d, aux, ctx); |
|
|
|
BN_sub(aux, rsa->p, BN_value_one()); |
|
BN_mod(rsa->dmp1, rsa->d, aux, ctx); |
|
|
|
BN_clear_free(aux); |
|
BN_CTX_free(ctx); |
|
} |
|
|
|
void |
|
process_add_identity(SocketEntry *e, int version) |
process_add_identity(SocketEntry *e, int version) |
{ |
{ |
Key *k = NULL; |
Key *k = NULL; |
|
|
char *shell, *format, *pidstr, pidstrbuf[1 + 3 * sizeof pid]; |
char *shell, *format, *pidstr, pidstrbuf[1 + 3 * sizeof pid]; |
extern int optind; |
extern int optind; |
fd_set *readsetp = NULL, *writesetp = NULL; |
fd_set *readsetp = NULL, *writesetp = NULL; |
|
|
|
SSLeay_add_all_algorithms(); |
|
|
while ((ch = getopt(ac, av, "cks")) != -1) { |
while ((ch = getopt(ac, av, "cks")) != -1) { |
switch (ch) { |
switch (ch) { |