forked from AuroraMiddleware/gtk
fb99bde840
We have a widget for password and passphrase entries, but we have no way to handle the data securely. This is usually performed by a separate GtkEntryBuffer—for instance, the one in GCR. While we have API for setting a new entry buffer on GtkText, we don't have API for GtkPasswordEntry, though, so the options are: - expose additional API for GtkPasswordEntry to allow setting a secure text buffer on the internal GtkText widget - provide a secure text buffer out of the box Given that an insecure-by-default GtkPasswordEntry is basically pointless, might as well have a secure buffer built in. We don't really need to make the password entry buffer public out of the box, but we can re-evaluate at a later date. Fixes: #2403
34 lines
1.1 KiB
C
34 lines
1.1 KiB
C
/* gtkpasswordentrybufferprivate.h: Entry buffer using secure allocation
|
|
*
|
|
* Copyright 2020 GNOME Foundation
|
|
*
|
|
* SPDX-License-Identifier: LGPL-2.1-or-later
|
|
*
|
|
* 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/>.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <gtk/gtkentrybuffer.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
#define GTK_TYPE_PASSWORD_ENTRY_BUFFER (gtk_password_entry_buffer_get_type())
|
|
|
|
G_DECLARE_FINAL_TYPE (GtkPasswordEntryBuffer, gtk_password_entry_buffer, GTK, PASSWORD_ENTRY_BUFFER, GtkEntryBuffer)
|
|
|
|
GtkEntryBuffer * gtk_password_entry_buffer_new (void);
|
|
|
|
G_END_DECLS
|