From: Kevin Coffman Date: Wed, 12 Jul 2006 03:09:59 +0000 (-0400) Subject: Fix compilation problem - write_oid not defined X-Git-Tag: nfs-utils-1-0-10~3 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=e99654bace14daee2f26506b61629d109aed98de;p=nfs-utils.git Fix compilation problem - write_oid not defined --- diff --git a/utils/gssd/write_bytes.h b/utils/gssd/write_bytes.h index 8021cd8..4fc72cc 100644 --- a/utils/gssd/write_bytes.h +++ b/utils/gssd/write_bytes.h @@ -63,6 +63,19 @@ write_buffer(char **p, char *end, gss_buffer_desc *arg) return 0; } +inline static int +write_oid(char **p, char *end, gss_OID_desc *arg) +{ + int len = (int)arg->length; /* make an int out of size_t */ + if (WRITE_BYTES(p, end, len)) + return -1; + if (*p + arg->length > end) + return -1; + memcpy(*p, arg->elements, len); + *p += len; + return 0; +} + static inline int get_bytes(char **ptr, const char *end, void *res, int len) {