]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
addns: Rename struct dns_tkey_record to addns_tkey_record
authorVolker Lendecke <vl@samba.org>
Wed, 27 May 2026 09:01:38 +0000 (11:01 +0200)
committerAnoop C S <anoopcs@samba.org>
Wed, 17 Jun 2026 08:28:32 +0000 (08:28 +0000)
This was preventing us from including librpc/gen_ndr/dns.h along with
lib/addns/dns.h.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
lib/addns/dns.h
lib/addns/dnsgss.c
lib/addns/dnsrecord.c

index 5c11b398ff7428bcf19e0c7816c22813a79ff97f..6cd2d09fb2d0f38f8f4974412e4b3de0962f485e 100644 (file)
@@ -175,7 +175,7 @@ struct dns_rrec {
        uint8_t *data;
 };
 
-struct dns_tkey_record {
+struct addns_tkey_record {
        struct dns_domain_name *algorithm;
        time_t inception;
        time_t expiration;
@@ -266,7 +266,7 @@ DNS_ERROR dns_create_aaaa_record(TALLOC_CTX *mem_ctx, const char *host,
                                 uint32_t ttl, const struct sockaddr_storage *pss,
                                 struct dns_rrec **prec);
 DNS_ERROR dns_unmarshall_tkey_record(TALLOC_CTX *mem_ctx, struct dns_rrec *rec,
-                                    struct dns_tkey_record **ptkey);
+                                    struct addns_tkey_record **ptkey);
 DNS_ERROR dns_create_tsig_record(TALLOC_CTX *mem_ctx, const char *keyname,
                                 const char *algorithm_name,
                                 time_t time_signed, uint16_t fudge,
index 8800ac24c8aea2f68b0ff76b27f130e245ecf515..59027b34db5a94da69a14b09ac869d2e58d8baf0 100644 (file)
@@ -99,7 +99,7 @@ static DNS_ERROR dns_negotiate_gss_ctx_int(struct dns_connection *conn,
 
                if (NT_STATUS_EQUAL(status, NT_STATUS_MORE_PROCESSING_REQUIRED)) {
                        struct dns_request *resp;
-                       struct dns_tkey_record *tkey;
+                       struct addns_tkey_record *tkey;
                        struct dns_rrec *tkey_answer = NULL;
                        uint16_t i;
 
index 3c5a81c9c4c3e141d6c33c8cee9d0847af9bc22f..47d1ed0458fa0f2b771bd953ec198c3b874a4cff 100644 (file)
@@ -260,13 +260,13 @@ DNS_ERROR dns_create_tkey_record(TALLOC_CTX *mem_ctx, const char *keyname,
 }
 
 DNS_ERROR dns_unmarshall_tkey_record(TALLOC_CTX *mem_ctx, struct dns_rrec *rec,
-                                    struct dns_tkey_record **ptkey)
+                                    struct addns_tkey_record **ptkey)
 {
-       struct dns_tkey_record *tkey;
+       struct addns_tkey_record *tkey;
        struct dns_buffer buf;
        uint32_t tmp_inception, tmp_expiration;
        
-       if (!(tkey = talloc(mem_ctx, struct dns_tkey_record))) {
+       if (!(tkey = talloc(mem_ctx, struct addns_tkey_record))) {
                return ERROR_DNS_NO_MEMORY;
        }