summaryrefslogtreecommitdiffstats
path: root/demos/tunala/cb.c
diff options
context:
space:
mode:
authorGeoff Thorpe <geoff@openssl.org>2002-02-20 05:02:50 +0000
committerGeoff Thorpe <geoff@openssl.org>2002-02-20 05:02:50 +0000
commit744c49a81b84bc78b01e0203770512c183bb754e (patch)
tree72f34c60eeecb01dd928d12da6c87a5492b1869e /demos/tunala/cb.c
parent9c5b91fd0be0ff6caea17ed62535590a7027b36a (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.c10
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) */