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/>.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2019-06-18 16:12:40 +00:00
|
|
|
#pragma once
|
2016-04-04 17:31:29 +00:00
|
|
|
|
2019-06-18 16:12:40 +00:00
|
|
|
#include "internal.h"
|
|
|
|
#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)
|
2019-10-14 12:25:14 +00:00
|
|
|
ATTRIBUTE_NONNULL(5) G_GNUC_WARN_UNUSED_RESULT;
|