*/
/********************************************************/
/* */
+/* Procedure to return all cipher information */
+/* */
+/********************************************************/
+PUBLIC const char *soc_getcipherid(SOCPTR *socptr)
+
+{
+const char *cipherid;
+SOCTYP *soc;
+
+cipherid=(const char *)0;
+soc=(SOCTYP *)socptr;
+if (soc!=(SOCTYP *)0)
+ cipherid=tls_getcipherid(soc->tls);
+return cipherid;
+}
+/*
+^L
+*/
+/********************************************************/
+/* */
/* Procedure to get the cipher name used in cypted */
/* mode. */
/* */
//return the cipher mame used on the crypted link
extern const char *soc_get_cipher_name(SOCPTR *socptr);
+//return all cipher information
+extern const char *soc_getcipherid(SOCPTR *socptr);
+
//return line socket mode (cleartext, crypted)
extern const char *soc_getstrmode(SOCPTR *socptr);
while (proceed==true) {
switch (phase) {
case 0 : //Inserting the remote information
- (void) fprintf(data,"Received: from %s ([%s])\n",
- contact->peername,contact->peerip);
+ (void) fprintf(data,"Received: from %s (IP=[%s], originator=<%s>)\n",
+ contact->peername,contact->peerip,contact->mailfrom);
break;
case 1 : //Inserting the Receive information
(void) fprintf(data,"\tby %s ([%s:%s]/%s-%s) with ESMTP\n",
break;
case 2 : //Inserting TLS information
if (soc_iscrypted(contact->socptr)==true) {
- (void) fprintf(data,"\t(JMPDBG crypted)\n");
+ (void) fprintf(data,"\t(%s)\n",soc_getcipherid(contact->socptr));
}
break;
case 3 : //Inserting ID information
break; //no need to go further
}
- (void) rou_alert(0,"%s JMPDBG got <%s>",OPEP,line);
(void) log_fprintlog(contact->logptr,false,"%s",line);
code=eml_getcode(line);
switch (code) {
cipherid=(char *)calloc(1,MXID);
(void) snprintf(cipherid,MXID,"version=%s cipher=%s bits=%d verify=%s",
version,name,bits,verif);
- (void) rou_alert(0,"%s cipherid=<%s>",OPEP,cipherid);
break;
default : //SAFE Guard
proceed=false;