diff options
author | Jeremy Allison <jra@samba.org> | 2003-01-21 13:33:36 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-01-21 13:33:36 +0000 |
commit | 1684719695acb7168115b032fc1ec672509239ea (patch) | |
tree | bf5de977b2ad22639c89581772e9e49cfad827d3 /source | |
parent | f150af98a77ebcfa848735b7a67bbb95bd6d5b57 (diff) | |
download | samba-1684719695acb7168115b032fc1ec672509239ea.tar.gz samba-1684719695acb7168115b032fc1ec672509239ea.tar.xz samba-1684719695acb7168115b032fc1ec672509239ea.zip |
Fixup proto generation to not include krb5 specific symbols
if no kerberos selected. Noticed by Metze.
Jeremy.
Diffstat (limited to 'source')
-rw-r--r-- | source/include/includes.h | 3 | ||||
-rw-r--r-- | source/libsmb/clikrb5.c | 10 |
2 files changed, 8 insertions, 5 deletions
diff --git a/source/include/includes.h b/source/include/includes.h index 0142dab7249..a823af59097 100644 --- a/source/include/includes.h +++ b/source/include/includes.h @@ -1218,6 +1218,9 @@ krb5_error_code krb5_set_real_time(krb5_context context, int32_t seconds, int32_ krb5_error_code krb5_set_default_tgs_ktypes(krb5_context ctx, const krb5_enctype *enc); #endif +/* Samba wrapper function for krb5 functionality. */ +void setup_kaddr( krb5_address *pkaddr, struct sockaddr *paddr); + #endif /* HAVE_KRB5 */ #endif /* _INCLUDES_H */ diff --git a/source/libsmb/clikrb5.c b/source/libsmb/clikrb5.c index b56de627306..2047efd7040 100644 --- a/source/libsmb/clikrb5.c +++ b/source/libsmb/clikrb5.c @@ -27,7 +27,7 @@ /* * This function is not in the Heimdal mainline. */ -krb5_error_code krb5_set_real_time(krb5_context context, int32_t seconds, int32_t microseconds) + krb5_error_code krb5_set_real_time(krb5_context context, int32_t seconds, int32_t microseconds) { krb5_error_code ret; int32_t sec, usec; @@ -44,7 +44,7 @@ krb5_error_code krb5_set_real_time(krb5_context context, int32_t seconds, int32_ #endif #if defined(HAVE_KRB5_SET_DEFAULT_IN_TKT_ETYPES) && !defined(HAVE_KRB5_SET_DEFAULT_TGS_KTYPES) -krb5_error_code krb5_set_default_tgs_ktypes(krb5_context ctx, const krb5_enctype *enc) + krb5_error_code krb5_set_default_tgs_ktypes(krb5_context ctx, const krb5_enctype *enc) { return krb5_set_default_in_tkt_etypes(ctx, enc); } @@ -52,7 +52,7 @@ krb5_error_code krb5_set_default_tgs_ktypes(krb5_context ctx, const krb5_enctype #if defined(HAVE_ADDR_TYPE_IN_KRB5_ADDRESS) /* HEIMDAL */ -void setup_kaddr( krb5_address *pkaddr, struct sockaddr *paddr) + void setup_kaddr( krb5_address *pkaddr, struct sockaddr *paddr) { pkaddr->addr_type = KRB5_ADDRESS_INET; pkaddr->address.length = sizeof(((struct sockaddr_in *)paddr)->sin_addr); @@ -60,14 +60,14 @@ void setup_kaddr( krb5_address *pkaddr, struct sockaddr *paddr) } #elif defined(HAVE_ADDRTYPE_IN_KRB5_ADDRESS) /* MIT */ -void setup_kaddr( krb5_address *pkaddr, struct sockaddr *paddr) + void setup_kaddr( krb5_address *pkaddr, struct sockaddr *paddr) { pkaddr->addrtype = ADDRTYPE_INET; pkaddr->length = sizeof(((struct sockaddr_in *)paddr)->sin_addr); pkaddr->contents = (char *)&(((struct sockaddr_in *)paddr)->sin_addr); } #else -__ERROR__XX__UNKNOWN_ADDRTYPE + __ERROR__XX__UNKNOWN_ADDRTYPE #endif /* |