+Mon Nov 2 19:00:23 1998 Tom Yu <tlyu@mit.edu>
+
+ * str_conv.c: Remove krb5_cksumtype_to_string after merge.
+
1998-10-27 Marc Horowitz <marc@mit.edu>
* vfy_increds.c: rearrange the code a bit to make it more clear
return(EINVAL);
}
-KRB5_DLLIMP krb5_error_code KRB5_CALLCONV
-krb5_cksumtype_to_string(cksumtype, buffer, buflen)
- krb5_cksumtype cksumtype;
- char FAR * buffer;
- size_t buflen;
-{
- int i;
- const char *out;
-
- out = (char *) NULL;
- for (i=0; i<cksumtype_table_nents; i++) {
- if (cksumtype == cksumtype_table[i].cst_cksumtype) {
- out = cksumtype_table[i].cst_output;
- break;
- }
- }
- if (out) {
- if (buflen > strlen(out))
- strcpy(buffer, out);
- else
- out = (char *) NULL;
- return((out) ? 0 : ENOMEM);
- }
- else
- return(EINVAL);
-}
-
KRB5_DLLIMP krb5_error_code KRB5_CALLCONV
krb5_timestamp_to_string(timestamp, buffer, buflen)
krb5_timestamp timestamp;