From nobody@FreeBSD.org  Fri Oct 21 17:19:24 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id AFACD106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 21 Oct 2011 17:19:24 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 9EEA48FC12
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 21 Oct 2011 17:19:24 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p9LHJOog027084
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 21 Oct 2011 17:19:24 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p9LHJOF2027082;
	Fri, 21 Oct 2011 17:19:24 GMT
	(envelope-from nobody)
Message-Id: <201110211719.p9LHJOF2027082@red.freebsd.org>
Date: Fri, 21 Oct 2011 17:19:24 GMT
From: Harry Coin <hcoin@quietfountain.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: der_xx_oid not declared before use in gss_krb5.c
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         161886
>Category:       kern
>Synopsis:       [kerberos] [patch] der_xx_oid not declared before use in gss_krb5.c
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 21 17:20:10 UTC 2011
>Closed-Date:    
>Last-Modified:  Sat Oct 22 05:09:11 UTC 2011
>Originator:     Harry Coin
>Release:        8Stable
>Organization:
Quiet Fountain LLC
>Environment:
amd64
>Description:


You will see many complaints by the compiler that der_get_oid der_free_oid
der_length_oid and der_put_oid are implicitly defined in gss_krb5.c.  No
check that the parameters in the call match what the procedure expects,
nor are any decorations about the procedure's requirements taken into account.

>How-To-Repeat:
Do a make in /usr/src/kerberos5/lib/libgssapi_krb5, watch gss_krb5.c
>Fix:
Change the makefile:

INCS=	${KRB5DIR}/lib/gssapi/gssapi/gssapi_krb5.h
-INCSDIR= ${INCLUDEDIR}/gssapi
+INCSDIR= ${INCLUDEDIR}/gssapi ${KRB5DIR}/lib/asn1

SRCS=	8003.c \


..

Change gss_krb5.c
/* RCSID("$Id: gss_krb5.c 21889 2007-08-09 07:43:24Z lha $"); */

#include <krb5.h>
#include <roken.h>
+#include <der.h>



>Release-Note:
>Audit-Trail:
>Unformatted:
