version 1.37.2.3, 2001/03/21 19:46:29 |
version 1.37.2.4, 2001/05/07 21:09:35 |
|
|
} |
} |
|
|
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; |
|
|
sz = howmany(n+1, NFDBITS) * sizeof(fd_mask); |
sz = howmany(n+1, NFDBITS) * sizeof(fd_mask); |
if (*fdrp == NULL || n > *fdl) { |
if (*fdrp == NULL || n > *fdl) { |
if (*fdrp) |
if (*fdrp) |
free(*fdrp); |
xfree(*fdrp); |
if (*fdwp) |
if (*fdwp) |
free(*fdwp); |
xfree(*fdwp); |
*fdrp = xmalloc(sz); |
*fdrp = xmalloc(sz); |
*fdwp = xmalloc(sz); |
*fdwp = xmalloc(sz); |
*fdl = n; |
*fdl = n; |
|
|
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) { |