newsoc=(SOCTYP *)newsocket();
newsoc->proto=soc->proto;
-newsoc->hostname=strdup(soc->hostname);
newsoc->ip=strdup(soc->ip);
newsoc->port=strdup(soc->port);
newsoc->iteration=soc->iteration;
}
break;
case 2 : //check socket components
- contact->locname=soc_getaddrinfo(contact->socptr,true,false);
- contact->peerip=soc_getaddrinfo(contact->socptr,false,false);
+ contact->locname=soc_getaddrinfo(contact->socptr,true,true);
+ contact->peerip=soc_getaddrinfo(contact->socptr,false,true);
if ((contact->locname==(char *)0)||(contact->peerip==(char *)0)) {
(void) rou_alert(0,"%s Unable to establish contact entities",OPEP);
contact=freecontact(contact);
//version definition
#define VERSION "0.3"
-#define RELEASE "23"
+#define RELEASE "24"
//Public variables
PUBLIC int debug=0; //debug level
while (proceed==true) {
switch (phase) {
case 0 : //Setting inital context
- if ((ctx=SSL_CTX_new(tls_methode()))!=(SSL_CTX *)0) {
+ if ((ctx=SSL_CTX_new(tls_methode()))==(SSL_CTX *)0) {
char reason[200];
(void) ERR_error_string(ERR_get_error(),reason);
}
break;
case 1 : //getting certificat name
- certpub[0]="./cert.pem"; //JMPDBG test
- certpub[1]="./key.pem"; //JMPDBG test
+ certpub[0]="./kleenex/cert.pem"; //JMPDBG test
+ certpub[1]="./kleenex/key.pem"; //JMPDBG test
break;
case 2 : //set certificate
if (SSL_CTX_use_certificate_file(ctx,certpub[0],SSL_FILETYPE_PEM)!=1) {