diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2011-05-12 13:46:40 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2011-05-12 13:46:40 +0000 |
commit | 766e0cb7d1b405a5ee168461f525f2074b7a99f5 (patch) | |
tree | 955595198ebacbd8e3c9c63033db6831a2bc386a /ssl/tls_srp.c | |
parent | 6a6b0c8b51c7da6bfe6e362e2263ea58d9c4b329 (diff) |
SRP fixes from HEAD which weren't in 1.0.1-stable.
Diffstat (limited to 'ssl/tls_srp.c')
-rw-r--r-- | ssl/tls_srp.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/ssl/tls_srp.c b/ssl/tls_srp.c index 0d15e8b9e7..6d78c49ea0 100644 --- a/ssl/tls_srp.c +++ b/ssl/tls_srp.c @@ -477,14 +477,14 @@ char *SSL_get_srp_userinfo(SSL *s) #define tls1_ctx_ctrl ssl3_ctx_ctrl #define tls1_ctx_callback_ctrl ssl3_ctx_callback_ctrl -int SSL_CTX_set_srp_username(SSL_CTX *ctx, char *name) +int SSL_CTX_set_srp_username(SSL_CTX *ctx,char *name) { - return tls1_ctx_ctrl(ctx, SSL_CTRL_SET_TLS_EXT_SRP_USERNAME, 0, name); + return tls1_ctx_ctrl(ctx,SSL_CTRL_SET_TLS_EXT_SRP_USERNAME,0,name); } -int SSL_CTX_set_srp_password(SSL_CTX *ctx, char *password) +int SSL_CTX_set_srp_password(SSL_CTX *ctx,char *password) { - return tls1_ctx_ctrl(ctx, SSL_CTRL_SET_TLS_EXT_SRP_PASSWORD, 0, password); + return tls1_ctx_ctrl(ctx,SSL_CTRL_SET_TLS_EXT_SRP_PASSWORD,0,password); } int SSL_CTX_set_srp_strength(SSL_CTX *ctx, int strength) @@ -495,8 +495,8 @@ int SSL_CTX_set_srp_strength(SSL_CTX *ctx, int strength) int SSL_CTX_set_srp_verify_param_callback(SSL_CTX *ctx, int (*cb)(SSL *,void *)) { - return tls1_ctx_callback_ctrl(ctx, SSL_CTRL_SET_SRP_VERIFY_PARAM_CB, - (void (*)())cb); + return tls1_ctx_callback_ctrl(ctx,SSL_CTRL_SET_SRP_VERIFY_PARAM_CB, + (void (*)(void))cb); } int SSL_CTX_set_srp_cb_arg(SSL_CTX *ctx, void *arg) @@ -507,21 +507,21 @@ int SSL_CTX_set_srp_cb_arg(SSL_CTX *ctx, void *arg) int SSL_CTX_set_srp_username_callback(SSL_CTX *ctx, int (*cb)(SSL *,int *,void *)) { - return tls1_ctx_callback_ctrl(ctx, SSL_CTRL_SET_TLS_EXT_SRP_USERNAME_CB, - (void (*)())cb); + return tls1_ctx_callback_ctrl(ctx,SSL_CTRL_SET_TLS_EXT_SRP_USERNAME_CB, + (void (*)(void))cb); } int SSL_CTX_set_srp_client_pwd_callback(SSL_CTX *ctx, char *(*cb)(SSL *,void *)) { - return tls1_ctx_callback_ctrl(ctx, SSL_CTRL_SET_SRP_GIVE_CLIENT_PWD_CB, - (void (*)())cb); + return tls1_ctx_callback_ctrl(ctx,SSL_CTRL_SET_SRP_GIVE_CLIENT_PWD_CB, + (void (*)(void))cb); } int SSL_CTX_set_srp_missing_srp_username_callback(SSL_CTX *ctx, char *(*cb)(SSL *,void *)) { return tls1_ctx_callback_ctrl(ctx, - SSL_CTRL_SET_TLS_EXT_SRP_MISSING_CLIENT_USERNAME_CB, - (void (*)())cb); + SSL_CTRL_SET_TLS_EXT_SRP_MISSING_CLIENT_USERNAME_CB, + (void (*)(void))cb); } #endif |