OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions
tls_srp.c File Reference
#include "ssl_locl.h"
#include <openssl/rand.h>
#include <openssl/srp.h>
#include <openssl/err.h>

Go to the source code of this file.

Macros

#define tls1_ctx_ctrl   ssl3_ctx_ctrl
 
#define tls1_ctx_callback_ctrl   ssl3_ctx_callback_ctrl
 

Functions

int SSL_CTX_SRP_CTX_free (struct ssl_ctx_st *ctx)
 
int SSL_SRP_CTX_free (struct ssl_st *s)
 
int SSL_SRP_CTX_init (struct ssl_st *s)
 
int SSL_CTX_SRP_CTX_init (struct ssl_ctx_st *ctx)
 
int SSL_srp_server_param_with_username (SSL *s, int *ad)
 
int SSL_set_srp_server_param_pw (SSL *s, const char *user, const char *pass, const char *grp)
 
int SSL_set_srp_server_param (SSL *s, const BIGNUM *N, const BIGNUM *g, BIGNUM *sa, BIGNUM *v, char *info)
 
int SRP_generate_server_master_secret (SSL *s, unsigned char *master_key)
 
int SRP_generate_client_master_secret (SSL *s, unsigned char *master_key)
 
int SRP_Calc_A_param (SSL *s)
 
BIGNUMSSL_get_srp_g (SSL *s)
 
BIGNUMSSL_get_srp_N (SSL *s)
 
char * SSL_get_srp_username (SSL *s)
 
char * SSL_get_srp_userinfo (SSL *s)
 
int SSL_CTX_set_srp_username (SSL_CTX *ctx, char *name)
 
int SSL_CTX_set_srp_password (SSL_CTX *ctx, char *password)
 
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 *))
 
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 *))
 
int SSL_CTX_set_srp_client_pwd_callback (SSL_CTX *ctx, char *(*cb)(SSL *, void *))
 

Macro Definition Documentation

#define tls1_ctx_callback_ctrl   ssl3_ctx_callback_ctrl

Definition at line 464 of file tls_srp.c.

#define tls1_ctx_ctrl   ssl3_ctx_ctrl

Definition at line 463 of file tls_srp.c.

Function Documentation

int SRP_Calc_A_param ( SSL s)

Definition at line 410 of file tls_srp.c.

int SRP_generate_client_master_secret ( SSL s,
unsigned char *  master_key 
)

Definition at line 373 of file tls_srp.c.

int SRP_generate_server_master_secret ( SSL s,
unsigned char *  master_key 
)

Definition at line 343 of file tls_srp.c.

int SSL_CTX_set_srp_cb_arg ( SSL_CTX ctx,
void arg 
)

Definition at line 488 of file tls_srp.c.

int SSL_CTX_set_srp_client_pwd_callback ( SSL_CTX ctx,
char *(*)(SSL *, void *)  cb 
)

Definition at line 500 of file tls_srp.c.

int SSL_CTX_set_srp_password ( SSL_CTX ctx,
char *  password 
)

Definition at line 471 of file tls_srp.c.

int SSL_CTX_set_srp_strength ( SSL_CTX ctx,
int  strength 
)

Definition at line 476 of file tls_srp.c.

int SSL_CTX_set_srp_username ( SSL_CTX ctx,
char *  name 
)

Definition at line 466 of file tls_srp.c.

int SSL_CTX_set_srp_username_callback ( SSL_CTX ctx,
int(*)(SSL *, int *, void *)  cb 
)

Definition at line 493 of file tls_srp.c.

int SSL_CTX_set_srp_verify_param_callback ( SSL_CTX ctx,
int(*)(SSL *, void *)  cb 
)

Definition at line 482 of file tls_srp.c.

int SSL_CTX_SRP_CTX_free ( struct ssl_ctx_st ctx)

Definition at line 66 of file tls_srp.c.

int SSL_CTX_SRP_CTX_init ( struct ssl_ctx_st ctx)

Definition at line 198 of file tls_srp.c.

BIGNUM* SSL_get_srp_g ( SSL s)

Definition at line 435 of file tls_srp.c.

BIGNUM* SSL_get_srp_N ( SSL s)

Definition at line 442 of file tls_srp.c.

char* SSL_get_srp_userinfo ( SSL s)

Definition at line 456 of file tls_srp.c.

char* SSL_get_srp_username ( SSL s)

Definition at line 449 of file tls_srp.c.

int SSL_set_srp_server_param ( SSL s,
const BIGNUM N,
const BIGNUM g,
BIGNUM sa,
BIGNUM v,
char *  info 
)

Definition at line 277 of file tls_srp.c.

int SSL_set_srp_server_param_pw ( SSL s,
const char *  user,
const char *  pass,
const char *  grp 
)

Definition at line 256 of file tls_srp.c.

int SSL_SRP_CTX_free ( struct ssl_st s)

Definition at line 98 of file tls_srp.c.

int SSL_SRP_CTX_init ( struct ssl_st s)

Definition at line 130 of file tls_srp.c.

int SSL_srp_server_param_with_username ( SSL s,
int *  ad 
)

Definition at line 228 of file tls_srp.c.