]> SAFE projects GIT repository - jmp/mailleur/commitdiff
Starting to work on SSL exchange
authorJean-Marc Pigeon (Delson) <jmp@safe.ca>
Mon, 5 Aug 2024 22:56:25 +0000 (18:56 -0400)
committerJean-Marc Pigeon (Delson) <jmp@safe.ca>
Mon, 5 Aug 2024 22:56:25 +0000 (18:56 -0400)
lib/devsoc.c
lib/gestcp.c
lib/subrou.c
lib/unissl.c

index a9007f0187047d2f8931565dcc4c76de0bd3cd77..bc5b6b48126fdcd6222158b956d4b2fd1e164dd7 100644 (file)
@@ -109,7 +109,6 @@ SOCTYP *newsoc;
 
 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;
index b803f01ecd26b5b6e4fbe2c22785df7919701317..a6ca573bc35d7f0bc6e10533f54fc8a0ba8f53fe 100644 (file)
@@ -155,8 +155,8 @@ while (proceed==true) {
         }
       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);
index f808aff9b782d64ce455814839a8b985ce66dac1..3c20ea81bf694d3886a12765d14031232da519a1 100644 (file)
@@ -20,7 +20,7 @@
 
 //version definition 
 #define VERSION "0.3"
-#define RELEASE "23"
+#define RELEASE "24"
 
 //Public variables
 PUBLIC  int debug=0;            //debug level
index a68f7b3ce5dc8d37b203eabe857db66adfaca8a1..238d6fafe6b67b1ba36d0073ddf26b6586abb0a2 100644 (file)
@@ -56,7 +56,7 @@ proceed=true;
 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);
@@ -66,8 +66,8 @@ while (proceed==true) {
         }
       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) {