Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys add an snprintb format.
details: https://anonhg.NetBSD.org/src/rev/a642a7664220
branches: trunk
changeset: 782889:a642a7664220
user: christos <christos%NetBSD.org@localhost>
date: Sun Nov 25 15:29:45 2012 +0000
description:
add an snprintb format.
diffstat:
sys/sys/cprng.h | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r 044d1f91526c -r a642a7664220 sys/sys/cprng.h
--- a/sys/sys/cprng.h Sun Nov 25 15:29:24 2012 +0000
+++ b/sys/sys/cprng.h Sun Nov 25 15:29:45 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cprng.h,v 1.5 2012/04/17 02:50:39 tls Exp $ */
+/* $NetBSD: cprng.h,v 1.6 2012/11/25 15:29:45 christos Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -92,6 +92,10 @@
#define CPRNG_INIT_ANY 0x00000001
#define CPRNG_REKEY_ANY 0x00000002
#define CPRNG_USE_CV 0x00000004
+#define CPRNG_FMT "\177\020\
+b\0INIT_ANY\0\
+b\1REKEY_ANY\0\
+b\2USE_CV\0"
cprng_strong_t *cprng_strong_create(const char *const, int, int);
Home |
Main Index |
Thread Index |
Old Index