blob: db9582ca726e862e48c75e95a264d74fc18ee573 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#include <openssl/ssl.h>
#include "_cgo_export.h"
int password_cb(char *buf,int buf_len, int rwflag,void *userdata) {
char* pw = (char *)userdata;
int l = strlen(pw);
if (l + 1 > buf_len) return 0;
strcpy(buf,pw);
return l;
}
|