diff options
author | Geoff Thorpe <geoff@openssl.org> | 2002-02-20 05:02:50 +0000 |
---|---|---|
committer | Geoff Thorpe <geoff@openssl.org> | 2002-02-20 05:02:50 +0000 |
commit | 744c49a81b84bc78b01e0203770512c183bb754e (patch) | |
tree | 72f34c60eeecb01dd928d12da6c87a5492b1869e /demos/tunala/cb.c | |
parent | 9c5b91fd0be0ff6caea17ed62535590a7027b36a (diff) |
- Add support for cipher suites that require a temporary RSA key for
key-agreement.
- Tolerate signal interruptions of select().
Diffstat (limited to 'demos/tunala/cb.c')
-rw-r--r-- | demos/tunala/cb.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/demos/tunala/cb.c b/demos/tunala/cb.c index cd32f74c70..e64983896e 100644 --- a/demos/tunala/cb.c +++ b/demos/tunala/cb.c @@ -129,5 +129,15 @@ void cb_ssl_verify_set_level(unsigned int level) cb_ssl_verify_level = level; } +RSA *cb_generate_tmp_rsa(SSL *s, int is_export, int keylength) +{ + /* TODO: Perhaps make it so our global key can be generated on-the-fly + * after certain intervals? */ + static RSA *rsa_tmp = NULL; + if(!rsa_tmp) + rsa_tmp = RSA_generate_key(keylength, RSA_F4, NULL, NULL); + return rsa_tmp; +} + #endif /* !defined(NO_OPENSSL) */ |