/usr/include/gcr-3/gcr/gcr-secure-memory.h is in libgcr-3-dev 3.18.0-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/* gcr-secure-memory.h - library for allocating memory that is non-pageable
Copyright (C) 2007 Stefan Walter
Copyright (C) 2012 Red Hat Inc.
The Gnome Keyring Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
The Gnome Keyring 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
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with the Gnome Library; see the file COPYING.LIB. If not,
see <http://www.gnu.org/licenses/>.
Author: Stef Walter <stefw@gnome.org>
*/
#if !defined (__GCR_INSIDE_HEADER__) && !defined (GCR_COMPILATION)
#error "Only <gcr/gcr.h> or <gcr/gcr-base.h> can be included directly."
#endif
#ifndef GCR_SECURE_MEMORY_H
#define GCR_SECURE_MEMORY_H
#include <glib.h>
G_BEGIN_DECLS
#define gcr_secure_memory_new(type, n_objects) \
((type *)(gcr_secure_memory_alloc (sizeof (type) * (n_objects))))
gpointer gcr_secure_memory_alloc (gsize size);
gpointer gcr_secure_memory_try_alloc (gsize size);
gpointer gcr_secure_memory_realloc (gpointer memory,
gsize size);
gpointer gcr_secure_memory_try_realloc (gpointer memory,
gsize size);
void gcr_secure_memory_free (gpointer memory);
gboolean gcr_secure_memory_is_secure (gpointer memory);
gchar * gcr_secure_memory_strdup (const gchar *string);
void gcr_secure_memory_strfree (gchar *string);
G_END_DECLS
#endif /* GCR_SECURE_MEMORY_H */
|