[29] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

Suggested addition to API, bcopy vs. memcpy

daemon@ATHENA.MIT.EDU (Bill Sommerfeld)
Thu Oct 18 15:55:00 1990

Date: Thu, 18 Oct 90 15:35:59 EDT
From: Bill Sommerfeld <sommerfeld@apollo.com>
To: krb5-testers@ATHENA.MIT.EDU

This is a pretty simple one (code has not been tested yet):

int krb5_init_creds (krb5_ccache ccache, 
		     krb5_principal server,
		     krb5_creds *creds)
{
    memset((char *)&creds, 0, sizeof(creds));
    creds.server = server;
    return krb5_cc_get_principal (ccache, &creds.client);
}

This is just "syntactic sugar", but it will save some typing...

Point 2: does anyone besides me think that kerberos V5 should use the
ANSI-C "mem*" functions instead of the less-standard BSD
"bcopy/bcmp/bzero"?

					- Bill


home help back first fref pref prev next nref lref last post