/* Procedure to return all cipher information */
/* */
/********************************************************/
-PUBLIC const char *soc_getcipherid(SOCPTR *socptr)
+PUBLIC char *soc_getcipherid(SOCPTR *socptr)
{
-const char *cipherid;
+char *cipherid;
SOCTYP *soc;
-cipherid=(const char *)0;
+cipherid=(char *)0;
soc=(SOCTYP *)socptr;
if (soc!=(SOCTYP *)0)
cipherid=tls_getcipherid(soc->tls);
extern const char *soc_get_cipher_name(SOCPTR *socptr);
//return all cipher information
-extern const char *soc_getcipherid(SOCPTR *socptr);
+extern char *soc_getcipherid(SOCPTR *socptr);
//return line socket mode (cleartext, crypted)
extern const char *soc_getstrmode(SOCPTR *socptr);
break;
case 2 : //Inserting TLS information
if (soc_iscrypted(contact->socptr)==true) {
- (void) fprintf(data,"\t(%s)\n",soc_getcipherid(contact->socptr));
+ char *cipherid;
+
+ cipherid=soc_getcipherid(contact->socptr);
+ if (cipherid!=(char *)0)
+ (void) fprintf(data,"\t(%s)\n",cipherid);
+ cipherid=rou_freestr(cipherid);
}
break;
case 3 : //Inserting ID information
ses->hfrom=rou_freestr(ses->hfrom);
ses->sfrom=rou_freestr(ses->sfrom);
ses->sessid=rou_freestr(ses->sessid);
+ ses->title=rou_freestr(ses->title);
(void) free(ses);
ses=(SESTYP *)0;
}