2016-04-04 17:31:29 +00:00
|
|
|
/*
|
|
|
|
* secret_util.h: secret related utility functions
|
|
|
|
*
|
|
|
|
* Copyright (C) 2016 Red Hat, Inc.
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library 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
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library. If not, see
|
|
|
|
* <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2018-12-13 14:53:50 +00:00
|
|
|
#ifndef LIBVIRT_SECRET_UTIL_H
|
|
|
|
# define LIBVIRT_SECRET_UTIL_H
|
2016-04-04 17:31:29 +00:00
|
|
|
|
|
|
|
# include "internal.h"
|
2016-05-28 12:43:23 +00:00
|
|
|
# include "virsecret.h"
|
2016-04-04 17:31:29 +00:00
|
|
|
|
2016-05-12 15:43:39 +00:00
|
|
|
int virSecretGetSecretString(virConnectPtr conn,
|
2016-05-28 12:43:23 +00:00
|
|
|
virSecretLookupTypeDefPtr seclookupdef,
|
2016-05-12 15:43:39 +00:00
|
|
|
virSecretUsageType secretUsageType,
|
|
|
|
uint8_t **ret_secret,
|
|
|
|
size_t *ret_secret_size)
|
|
|
|
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(4)
|
|
|
|
ATTRIBUTE_NONNULL(5) ATTRIBUTE_RETURN_CHECK;
|
2018-12-13 14:53:50 +00:00
|
|
|
#endif /* LIBVIRT_SECRET_UTIL_H */
|