diff --git a/daemons/ipa-otpd/internal.h b/daemons/ipa-otpd/internal.h index b7ab2d499..9b2f21ea7 100644 --- a/daemons/ipa-otpd/internal.h +++ b/daemons/ipa-otpd/internal.h @@ -24,6 +24,8 @@ #include "krad.h" +#include + #include #include @@ -164,6 +166,14 @@ void otpd_log_err_(const char * const file, int line, krb5_error_code code, int add_krad_attr_to_set(krad_packet *req, krad_attrset *attrset, krb5_data *datap, krad_attr attr, const char *message); +int get_string(LDAP *ldp, LDAPMessage *entry, const char *name, + char **out); + +int get_string_array(LDAP *ldp, LDAPMessage *entry, const char *name, + char ***out); + +bool auth_type_is(char **auth_types, const char *check); + krb5_error_code otpd_queue_item_new(krad_packet *req, struct otpd_queue_item **item); diff --git a/daemons/ipa-otpd/parse.c b/daemons/ipa-otpd/parse.c index 345d2dfcb..45a30c8a3 100644 --- a/daemons/ipa-otpd/parse.c +++ b/daemons/ipa-otpd/parse.c @@ -34,8 +34,8 @@ #define DEFAULT_RETRIES 3 /* Convert an LDAP entry into an allocated string. */ -static int get_string(LDAP *ldp, LDAPMessage *entry, const char *name, - char **out) +int get_string(LDAP *ldp, LDAPMessage *entry, const char *name, + char **out) { struct berval **vals; ber_len_t i; @@ -69,8 +69,8 @@ static int get_string(LDAP *ldp, LDAPMessage *entry, const char *name, } /* Convert an LDAP entry into an allocated string array. */ -static int get_string_array(LDAP *ldp, LDAPMessage *entry, const char *name, - char ***out) +int get_string_array(LDAP *ldp, LDAPMessage *entry, const char *name, + char ***out) { struct berval **vals; ber_len_t i; diff --git a/daemons/ipa-otpd/query.c b/daemons/ipa-otpd/query.c index e6f717655..9f8acacd4 100644 --- a/daemons/ipa-otpd/query.c +++ b/daemons/ipa-otpd/query.c @@ -69,7 +69,7 @@ static char *idp[] = { NULL }; -static bool auth_type_is(char **auth_types, const char *check) +bool auth_type_is(char **auth_types, const char *check) { size_t c;