X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/3736af69c183d472642ed17375b0970f5239e6e5..3c54bbb247ffc8fa094d754099c0b009e79d484d:/sbr/credentials.c diff --git a/sbr/credentials.c b/sbr/credentials.c index d3e8075f..910e097d 100644 --- a/sbr/credentials.c +++ b/sbr/credentials.c @@ -5,9 +5,14 @@ * complete copyright information. */ -#include -#include -#include +#include "h/mh.h" +#include "concat.h" +#include "ruserpass.h" +#include "credentials.h" +#include "context_find.h" +#include "error.h" +#include "h/utils.h" +#include "h/mts.h" #include "m_maildir.h" struct nmh_creds { @@ -17,7 +22,8 @@ struct nmh_creds { }; void -init_credentials_file(void) { +init_credentials_file(void) +{ if (credentials_file == NULL) { char *cred_style = context_find ("credentials"); @@ -128,8 +134,8 @@ nmh_cred_get_password(nmh_creds_t creds) void nmh_credentials_free(nmh_creds_t creds) { - mh_xfree(creds->host); - mh_xfree(creds->user); + free(creds->host); + free(creds->user); if (creds->pass) { memset(creds->pass, 0, strlen(creds->pass));