make encoding function independent of krb4 and krb5, enable removal of krb4

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20452 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2007-04-19 20:04:19 +00:00
parent 40d8ff7afa
commit 9d0c063d77
4 changed files with 24 additions and 32 deletions

View File

@@ -779,10 +779,8 @@ suspicious_address (int sock, struct sockaddr *addr)
* libkrb5 either.
*/
#ifndef KRB4
int
krb_get_int(void *f, uint32_t *to, int size, int lsb)
kx_get_int(void *f, uint32_t *to, int size, int lsb)
{
int i;
unsigned char *from = (unsigned char *)f;
@@ -799,7 +797,7 @@ krb_get_int(void *f, uint32_t *to, int size, int lsb)
}
int
krb_put_int(uint32_t from, void *to, size_t rem, int size)
kx_put_int(uint32_t from, void *to, size_t rem, int size)
{
int i;
unsigned char *p = (unsigned char *)to;
@@ -813,5 +811,3 @@ krb_put_int(uint32_t from, void *to, size_t rem, int size)
}
return size;
}
#endif /* !KRB4 */