tests/Makefile.m4: Distribute the converted AES test-vector files.
[u/mdw/catacomb] / keycheck.c
index 2ced761..0025f98 100644 (file)
@@ -1,13 +1,13 @@
 /* -*-c-*-
  *
- * $Id: keycheck.c,v 1.1 2001/02/03 16:08:24 mdw Exp $
+ * $Id: keycheck.c,v 1.3 2004/04/08 01:36:15 mdw Exp $
  *
  * Framework for checking consistency of keys
  *
  * (c) 2001 Straylight/Edgeware
  */
 
-/*----- Licensing notice --------------------------------------------------* 
+/*----- Licensing notice --------------------------------------------------*
  *
  * This file is part of Catacomb.
  *
  * it under the terms of the GNU Library General Public License as
  * published by the Free Software Foundation; either version 2 of the
  * License, or (at your option) any later version.
- * 
+ *
  * Catacomb is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU Library General Public License for more details.
- * 
+ *
  * You should have received a copy of the GNU Library General Public
  * License along with Catacomb; if not, write to the Free
  * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
  * MA 02111-1307, USA.
  */
 
-/*----- Revision history --------------------------------------------------* 
- *
- * $Log: keycheck.c,v $
- * Revision 1.1  2001/02/03 16:08:24  mdw
- * Add consistency checking for public keys.
- *
- */
-
 /*----- Header files ------------------------------------------------------*/
 
 #include <stdarg.h>
@@ -65,11 +57,11 @@ int keycheck_report(keycheck *kc, unsigned sev, const char *msg, ...)
 
   kc->sev[sev]++;
   va_start(ap, msg);
-  dstr_vputf(&d, msg, ap);
+  dstr_vputf(&d, msg, &ap);
   va_end(ap);
   rc = kc->func ? kc->func(sev, d.buf, kc->p) : 0;
   dstr_destroy(&d);
-  return (rc);  
+  return (rc);
 }
 
 /* --- @keycheck_init@ --- *