Export hooks for looking up SRV records, so we can avoid duplicating the code
authorKen Raeburn <raeburn@mit.edu>
Fri, 6 Jun 2003 22:48:34 +0000 (22:48 +0000)
committerKen Raeburn <raeburn@mit.edu>
Fri, 6 Jun 2003 22:48:34 +0000 (22:48 +0000)
* 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

src/include/ChangeLog
src/include/k5-int.h

index 7b5f4e7f9754d5beed7e4054ebe8a18fa4e4062e..abab0707445122d480f9497e4147364c3778f49a 100644 (file)
@@ -1,3 +1,11 @@
+2003-06-06  Ken Raeburn  <raeburn@mit.edu>
+
+       * 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  <raeburn@mit.edu>
 
        * k5-int.h (struct _krb5int_access): Add locate_server back in.
index d599f972c0ebb053050218242d26114033479ea8..ee3e65b070bcebe5b9fbb975ce7c198dc5b6136e 100644 (file)
@@ -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);