]> SAFE projects GIT repository - jmp/mailleur/commitdiff
TLS connection seems to be working
authorJean-Marc Pigeon (Delson) <jmp@safe.ca>
Sun, 6 Apr 2025 23:41:56 +0000 (19:41 -0400)
committerJean-Marc Pigeon (Delson) <jmp@safe.ca>
Sun, 6 Apr 2025 23:41:56 +0000 (19:41 -0400)
Makefile
lib/devsoc.c
lib/gestcp.c
lib/lvleml.c
lib/subrou.c
lib/unitls.c

index 46168429f30e1a6496ef5823e24ad3009b26881d..0b5df99f9faa98cfdf814ee07a196cc4f758dccc 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -75,20 +75,16 @@ dbgfeed     :       debug
 tlsrcvr        :       
                @ clear
                @ openssl s_client                      \
-                       -status                         \
-                       -msg                            \
-                       -debug                          \
+                       -crlf                           \
                        -CAfile certs/safe_CA.pem       \
                        -cert certs/localhost_cert.pem  \
                        -key certs/localhost_key.pem    \
-                       -connect $(TESTIP):$(TESTPORT)  \
-                       -starttls                       \
-                       smtp
+                       -starttls smtp                  \
+                       -connect $(TESTIP):$(TESTPORT)  
 
 xxx    :
                @ clear
                @ openssl s_client                      \
-                       -state                          \
                        -crlf                           \
                        -key certs/localhost_key.pem    \
                        -cert certs/localhost_cert.pem  \
index 3c23c89720e4e5215fbd31e830e3f6d3d8634151..2766eaab0c70ae73aef2e0b8e320b08b5e638f04 100644 (file)
@@ -920,9 +920,7 @@ if (soc!=(SOCTYP *)0) {
       break;
     }
   (void) sigprocmask(SIG_SETMASK,(sigset_t *)0,&origmask);
-  (void) rou_alert(0,"%s JMPDBG Entering poll",OPEP);
   status=poll(polling,1,millisec);
-  (void) rou_alert(0,"%s JMPDBG Exiting poll",OPEP);
   (void) sigprocmask(SIG_SETMASK,&origmask,(sigset_t *)0);
   switch (status) {
     case -1     :       //polling error
@@ -1143,8 +1141,6 @@ while (proceed==true) {
             }
           soc->carin+=got;      //managing carpile
           soc->carpile[soc->carin]='\000';
-          (void) rou_alert(0,"%s JMPDBG so fare within carpile=<%s>",
-                              OPEP,soc->carpile);
           break;
         }
       break;
index 9fbfbd6e1914c69c781cf1e31cdcfb3ef6e77e48..5531085b26b76fcfcd027bb79a29c3df0b45c719 100644 (file)
@@ -47,7 +47,7 @@ got=0;
 phase=0;
 proceed=true;
 while (proceed==true) {
-  (void) rou_alert(0,"JMPDBG %s phase='%d'",OPEP,phase);
+  //(void) rou_alert(0,"JMPDBG %s phase='%d'",OPEP,phase);
   switch (phase) {
     case 0      :       //link still open?
       if (soc_receive(socptr)<0) {
index aad55831e59a18486097757589e943174ff08acf..d2bbba7899fb247f03046d40aa512a70e9e1f5a9 100644 (file)
@@ -112,7 +112,7 @@ if (contact!=(CONTYP *)0) {
 static _Bool dohelo(CONTYP *contact,char *parameter)
 
 {
-#define        OPEP    "unieml.c:dohelo"
+#define        OPEP    "lvleml.c:dohelo"
 #define DETAIL  "HELO argument is mandatory, closing connection"
 
 _Bool done;
@@ -172,7 +172,7 @@ static char *ehlostr[]= {
         (char *)0
         };
 
-#define        OPEP    "unieml.c:doehlo"
+#define        OPEP    "lvleml.c:doehlo"
 #define DETAIL  "syntax error (domain part missing), closing connection"
 
 _Bool done;
@@ -202,8 +202,7 @@ while (proceed==true) {
       if (contact->tlsok==true)
         strstart++;
       for (int i=strstart;ehlostr[i]!=(char *)0;i++) {
-        (void) rou_alert(0,"%s, JMPDNG i='%d'",OPEP,i);
-        (void) transmit(contact,"%d%s JMPDBG",CMDOK,ehlostr[i]);
+        (void) transmit(contact,"%d%s",CMDOK,ehlostr[i]);
         }
       done=true;
       break;
index 0c217a52996ac1e66fa3eb5c0112391b8d4a8435..7c7567887a2a05f703ea87aae1acc9adee4cfad2 100644 (file)
@@ -21,7 +21,7 @@
 
 //version definition 
 #define VERSION "0.6"
-#define RELEASE "48"
+#define RELEASE "49"
 #define BRANCH "dvl"
 
 //Public variables
index 23307d888f8faaa6d8aa1ec764059f893cb1efb4..23354d09b6bdef7a608234b061abb922530acc93 100644 (file)
@@ -404,7 +404,7 @@ if (server==true)
 phase=0;
 proceed=true;
 while (proceed==true) {
-  (void) rou_alert(0,"%s JMPDBG phase='%d', serveur='%d'",OPEP,phase,server);
+  //(void) rou_alert(0,"%s JMPDBG phase='%d', serveur='%d'",OPEP,phase,server);
   switch (phase) {
     case 0      :       //prepare the structure first;
       tls=(TLSTYP *)calloc(1,sizeof(TLSTYP));
@@ -523,7 +523,6 @@ if (tls!=(TLSTYP *)0) {
     status=0;
     proceed=false;
     sofar=SSL_write(tls->ssl,buffer,tosend);
-    (void) rou_alert(0,"%s JMPDBG sofar='%d'",OPEP,sofar);
     switch (sofar) {
       case -1     :       //trouble to write
         switch (status=SSL_get_error(tls->ssl,-1)) {