Added TLS cert fail callback
This commit is contained in:
@@ -638,3 +638,18 @@ sv_ev_muc_occupant_online(const char * const room, const char * const nick, cons
|
||||
occupantswin_occupants(room);
|
||||
}
|
||||
}
|
||||
|
||||
int
|
||||
sv_ev_certfail(const char * const errormsg, const char * const certname, const char * const certfp,
|
||||
const char * const notbefore, const char * const notafter)
|
||||
{
|
||||
cons_show("");
|
||||
cons_show_error("TLS certficiate verification failed: %s", errormsg);
|
||||
cons_show(" Issuer : %s", certname);
|
||||
cons_show(" Fingerprint : %s", certfp);
|
||||
cons_show(" Start : %s", notbefore);
|
||||
cons_show(" End : %s", notafter);
|
||||
cons_show("");
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -86,5 +86,8 @@ void sv_ev_muc_occupant_online(const char * const room, const char * const nick,
|
||||
void sv_ev_roster_update(const char * const barejid, const char * const name,
|
||||
GSList *groups, const char * const subscription, gboolean pending_out);
|
||||
void sv_ev_roster_received(void);
|
||||
int sv_ev_certfail(const char * const errormsg, const char * const certname, const char * const certfp,
|
||||
const char * const notbefore, const char * const notafter);
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user