|
From: Bob T. <bt...@us...> - 2001-08-14 04:24:00
|
Update of /cvsroot/benson/benson3/src
In directory usw-pr-cvs1:/tmp/cvs-serv8539/src
Modified Files:
ssl.c
Log Message:
Made some changes, need to work on the password code, and actually linking the perl code in
Index: ssl.c
===================================================================
RCS file: /cvsroot/benson/benson3/src/ssl.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** ssl.c 2001/08/14 04:11:02 1.3
--- ssl.c 2001/08/14 04:23:57 1.4
***************
*** 1,4 ****
--- 1,5 ----
#include "benson/benson.h"
+ static char *pass;
BIO *bio_err=0;
***************
*** 21,29 ****
}
! int password_cb(char *buf, int size, int rwflag, void *password)
{
! strncpy(buf, (char *)(password), size);
! buf[size - 1] = '\0';
! return(strlen(buf));
}
--- 22,32 ----
}
! int password_cb(char *buf, int num, int rwflag, void *password)
{
! if(num<strlen(pass)+1)
! return (0);
!
! strcpy(buf,pass);
! return(strlen(pass));
}
***************
*** 60,64 ****
SSL_CTX *ctx;
struct ssl_password *ssl_pw = malloc(sizeof(struct ssl_password));
!
if(!bio_err) {
SSL_library_init();
--- 63,67 ----
SSL_CTX *ctx;
struct ssl_password *ssl_pw = malloc(sizeof(struct ssl_password));
! pass=password;
if(!bio_err) {
SSL_library_init();
|