random-gnutls.c (1effe6ad5eac1b2e50a077695ac801d172891d6a) | random-gnutls.c (e688df6bc4549f28534cdb001f168b8caae55b0c) |
---|---|
1/* 2 * QEMU Crypto random number provider 3 * 4 * Copyright (c) 2015-2016 Red Hat, Inc. 5 * 6 * This library is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU Lesser General Public 8 * License as published by the Free Software Foundation; either --- 7 unchanged lines hidden (view full) --- 16 * You should have received a copy of the GNU Lesser General Public 17 * License along with this library; if not, see <http://www.gnu.org/licenses/>. 18 * 19 */ 20 21#include "qemu/osdep.h" 22 23#include "crypto/random.h" | 1/* 2 * QEMU Crypto random number provider 3 * 4 * Copyright (c) 2015-2016 Red Hat, Inc. 5 * 6 * This library is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU Lesser General Public 8 * License as published by the Free Software Foundation; either --- 7 unchanged lines hidden (view full) --- 16 * You should have received a copy of the GNU Lesser General Public 17 * License along with this library; if not, see <http://www.gnu.org/licenses/>. 18 * 19 */ 20 21#include "qemu/osdep.h" 22 23#include "crypto/random.h" |
24#include "qapi/error.h" |
|
24 25#include <gnutls/gnutls.h> 26#include <gnutls/crypto.h> 27 28int qcrypto_random_bytes(uint8_t *buf, 29 size_t buflen, 30 Error **errp) 31{ --- 15 unchanged lines hidden --- | 25 26#include <gnutls/gnutls.h> 27#include <gnutls/crypto.h> 28 29int qcrypto_random_bytes(uint8_t *buf, 30 size_t buflen, 31 Error **errp) 32{ --- 15 unchanged lines hidden --- |