]> SAFE projects GIT repository - jmp/mailleur/commitdiff
cnv_getb64 procedure seems to be workin
authorJean-Marc Pigeon (Delson) <jmp@safe.ca>
Mon, 30 Jun 2025 22:46:00 +0000 (18:46 -0400)
committerJean-Marc Pigeon (Delson) <jmp@safe.ca>
Mon, 30 Jun 2025 22:46:00 +0000 (18:46 -0400)
lib/lvleml.c
lib/subcnv.c

index 5aaf30e19e044d8fe6ea241548be7c76dec7ba02..5ad0c173903642474ec8097e270d3be4f322192d 100644 (file)
@@ -323,9 +323,9 @@ _Bool proceed;
 
 code=-1;
 phase=0;
-(void) rou_alert(0,"%s JMPDBG got <%s>",OPEP,buffer);
 proceed=(strlen(buffer)>0);
 while (proceed==true) {
+  (void) rou_alert(0,"%s JMPDBG phase='%d' buffer=<%s>",OPEP,phase,buffer);
   switch (phase) {
     case 0      :       //check the authentication type
       for (code=0;vocloc[code]!=(char *)0;code++) {
@@ -335,7 +335,7 @@ while (proceed==true) {
 
           taille=strlen(vocloc[code]);
           ptr=buffer+taille;
-          (void) memcpy(buffer,ptr,taille);
+          (void) memcpy(buffer,ptr,strlen(ptr)+1);
           break;
           }
         }
@@ -346,9 +346,9 @@ while (proceed==true) {
         }
       break;
     case 1      :       //working accoring auth mode
+          (void) rou_alert(0,"%s clean buffer=<%s>",OPEP,cnv_getb64(buffer));
       switch (code) {
         case 0          :       //plain auth
-          (void) rou_alert(0,"%s clean buffer=<%x>",OPEP,cnv_getb64(buffer));
           
           break;
         case 1          :       //login auth
index 164a721458fd44596776889e5e8ccad0239c8591..a16ffa95a66b1a1beb42cf24c02ff6f4d3a58ad3 100644 (file)
@@ -5,12 +5,16 @@
 /*      conversion.                                     */
 /*                                                     */
 /********************************************************/
-#include        <openssl/bio.h>
-#include        <openssl/evp.h>
 #include        <ctype.h>
 #include        <stdbool.h>
 #include        <string.h>
 
+#define         OPENSSL_NO_KRB5
+#include        <openssl/bio.h>
+#include        <openssl/evp.h>
+#include        <openssl/err.h>
+#include        <openssl/ssl.h>
+
 #include       "subcnv.h"
 
 /*