From: Ken Raeburn Date: Fri, 6 Jun 2003 22:48:34 +0000 (+0000) Subject: Export hooks for looking up SRV records, so we can avoid duplicating the code X-Git-Tag: krb5-1.4-beta1~862 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f56c6e2edddf8995ef28f3e488821bfd2108730c;p=krb5.git Export hooks for looking up SRV records, so we can avoid duplicating the code * k5-int.h (struct srv_dns_entry): Declare. (krb5int_make_srv_query_realm, krb5int_free_srv_dns_data): Declare. (struct _krb5int_access): Add make_srv_query_realm and free_srv_dns_data fields. ticket: 1550 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15595 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/include/ChangeLog b/src/include/ChangeLog index 7b5f4e7f9..abab07074 100644 --- a/src/include/ChangeLog +++ b/src/include/ChangeLog @@ -1,3 +1,11 @@ +2003-06-06 Ken Raeburn + + * k5-int.h (struct srv_dns_entry): Declare. + (krb5int_make_srv_query_realm, krb5int_free_srv_dns_data): + Declare. + (struct _krb5int_access): Add make_srv_query_realm and + free_srv_dns_data fields. + 2003-06-03 Ken Raeburn * k5-int.h (struct _krb5int_access): Add locate_server back in. diff --git a/src/include/k5-int.h b/src/include/k5-int.h index d599f972c..ee3e65b07 100644 --- a/src/include/k5-int.h +++ b/src/include/k5-int.h @@ -1624,7 +1624,19 @@ krb5_error_code krb5int_setpw_result_code_string (krb5_context context, int result_code, const char **result_codestr); - +struct srv_dns_entry { + struct srv_dns_entry *next; + int priority; + int weight; + unsigned short port; + char *host; +}; +krb5_error_code +krb5int_make_srv_query_realm(const krb5_data *realm, + const char *service, + const char *protocol, + struct srv_dns_entry **answers); +void krb5int_free_srv_dns_data(struct srv_dns_entry *); #if defined(macintosh) && defined(__CFM68K__) && !defined(__USING_STATIC_LIBS__) #pragma import reset @@ -1668,6 +1680,13 @@ typedef struct _krb5int_access { int port, int secport, int socktype, int family); void (*free_addrlist) (struct addrlist *); + + krb5_error_code (*make_srv_query_realm)(const krb5_data *realm, + const char *service, + const char *protocol, + struct srv_dns_entry **answers); + void (*free_srv_dns_data)(struct srv_dns_entry *); + /* krb4 compatibility stuff -- may be null if not enabled */ krb5_int32 (*krb_life_to_time)(krb5_int32, int); int (*krb_time_to_life)(krb5_int32, krb5_int32);