8688e7005afed694ca129d00d3cd73b32828804bTinderbox User * Copyright (C) 2000, 2001, 2004, 2005, 2007, 2015, 2016 Internet Systems Consortium, Inc. ("ISC")
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * This Source Code Form is subject to the terms of the Mozilla Public
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * License, v. 2.0. If a copy of the MPL was not distributed with this
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * file, You can obtain one at http://mozilla.org/MPL/2.0/.
5b7abbef511cea0b568be0bc8d5b3120a0b9034dEvan Hunt/* $Id: entropy2_test.c,v 1.16 2007/06/19 23:46:59 tbox Exp $ */
420a43c8d8028992a4e9c170022f97bfac689025Evan Hunthex_dump(const char *msg, void *data, unsigned int length) {
420a43c8d8028992a4e9c170022f97bfac689025Evan Hunt printf("FAILURE: %s: %s\n", msg, isc_result_totext(result));
420a43c8d8028992a4e9c170022f97bfac689025Evan Huntstart(isc_entropysource_t *source, void *arg, isc_boolean_t blocking) {
b5252fcde512405a68dd4becfe683d9763bd0feaMukund Sivaraman printf("start called, non-blocking mode.\n");
b5252fcde512405a68dd4becfe683d9763bd0feaMukund Sivaramanstop(isc_entropysource_t *source, void *arg) {
b5252fcde512405a68dd4becfe683d9763bd0feaMukund Sivaraman isc_keyboard_t *kbd = (isc_keyboard_t *)arg;
b5252fcde512405a68dd4becfe683d9763bd0feaMukund Sivaraman printf("ENOUGH! Stop typing, please.\r\n");
b5252fcde512405a68dd4becfe683d9763bd0feaMukund Sivaramanget(isc_entropysource_t *source, void *arg, isc_boolean_t blocking) {
b5252fcde512405a68dd4becfe683d9763bd0feaMukund Sivaraman isc_keyboard_t *kbd = (isc_keyboard_t *)arg;
b5252fcde512405a68dd4becfe683d9763bd0feaMukund Sivaraman unsigned char c;
b5252fcde512405a68dd4becfe683d9763bd0feaMukund Sivaraman result = isc_entropy_addcallbacksample(source, sample, extra);
&source);
flags = 0;
returned = 0;