mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
a tad more const
-correctness
Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
This commit is contained in:
parent
7c56eac154
commit
b28ac09368
@ -257,7 +257,7 @@ tlscerts_new(const char* const fingerprint, int version, const char* const seria
|
||||
}
|
||||
|
||||
void
|
||||
tlscerts_add(TLSCertificate* cert)
|
||||
tlscerts_add(const TLSCertificate* cert)
|
||||
{
|
||||
if (!cert) {
|
||||
return;
|
||||
|
@ -82,7 +82,7 @@ void tlscerts_clear_current(void);
|
||||
|
||||
gboolean tlscerts_exists(const char* const fingerprint);
|
||||
|
||||
void tlscerts_add(TLSCertificate* cert);
|
||||
void tlscerts_add(const TLSCertificate* cert);
|
||||
|
||||
gboolean tlscerts_revoke(const char* const fingerprint);
|
||||
|
||||
|
@ -1134,7 +1134,7 @@ sv_ev_muc_occupant_online(const char* const room, const char* const nick, const
|
||||
}
|
||||
|
||||
int
|
||||
sv_ev_certfail(const char* const errormsg, TLSCertificate* cert)
|
||||
sv_ev_certfail(const char* const errormsg, const TLSCertificate* cert)
|
||||
{
|
||||
// check profanity trusted certs
|
||||
if (tlscerts_exists(cert->fingerprint)) {
|
||||
|
@ -86,7 +86,7 @@ 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);
|
||||
void sv_ev_connection_features_received(void);
|
||||
int sv_ev_certfail(const char* const errormsg, TLSCertificate* cert);
|
||||
int sv_ev_certfail(const char* const errormsg, const TLSCertificate* cert);
|
||||
void sv_ev_lastactivity_response(const char* const from, const int seconds, const char* const msg);
|
||||
void sv_ev_bookmark_autojoin(Bookmark* bookmark);
|
||||
|
||||
|
@ -181,7 +181,7 @@ cons_show_error(const char* const msg, ...)
|
||||
}
|
||||
|
||||
void
|
||||
cons_show_tlscert_summary(TLSCertificate* cert)
|
||||
cons_show_tlscert_summary(const TLSCertificate* cert)
|
||||
{
|
||||
if (!cert) {
|
||||
return;
|
||||
@ -193,7 +193,7 @@ cons_show_tlscert_summary(TLSCertificate* cert)
|
||||
}
|
||||
|
||||
void
|
||||
cons_show_tlscert(TLSCertificate* cert)
|
||||
cons_show_tlscert(const TLSCertificate* cert)
|
||||
{
|
||||
if (!cert) {
|
||||
return;
|
||||
|
@ -333,8 +333,8 @@ void cons_show_contact_online(PContact contact, Resource* resource, GDateTime* l
|
||||
void cons_show_contact_offline(PContact contact, char* resource, char* status);
|
||||
void cons_theme_properties(void);
|
||||
void cons_theme_colours(void);
|
||||
void cons_show_tlscert(TLSCertificate* cert);
|
||||
void cons_show_tlscert_summary(TLSCertificate* cert);
|
||||
void cons_show_tlscert(const TLSCertificate* cert);
|
||||
void cons_show_tlscert_summary(const TLSCertificate* cert);
|
||||
|
||||
void cons_alert(ProfWin* alert_origin_window);
|
||||
void cons_remove_alert(ProfWin* window);
|
||||
|
@ -649,11 +649,11 @@ jabber_get_tls_peer_cert(void)
|
||||
return NULL;
|
||||
}
|
||||
void
|
||||
cons_show_tlscert(TLSCertificate* cert)
|
||||
cons_show_tlscert(const TLSCertificate* cert)
|
||||
{
|
||||
}
|
||||
void
|
||||
cons_show_tlscert_summary(TLSCertificate* cert)
|
||||
cons_show_tlscert_summary(const TLSCertificate* cert)
|
||||
{
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user