diff options
Diffstat (limited to 'src/userpref.h')
| -rw-r--r-- | src/userpref.h | 46 | 
1 files changed, 0 insertions, 46 deletions
diff --git a/src/userpref.h b/src/userpref.h deleted file mode 100644 index f9d3913..0000000 --- a/src/userpref.h +++ /dev/null  | |||
| @@ -1,46 +0,0 @@ | |||
| 1 | /* | ||
| 2 | * userpref.h | ||
| 3 | * contains methods to access user specific certificates IDs and more. | ||
| 4 | * | ||
| 5 | * Copyright (c) 2008 Jonathan Beck All Rights Reserved. | ||
| 6 | * | ||
| 7 | * This library is free software; you can redistribute it and/or | ||
| 8 | * modify it under the terms of the GNU Lesser General Public | ||
| 9 | * License as published by the Free Software Foundation; either | ||
| 10 | * version 2.1 of the License, or (at your option) any later version. | ||
| 11 | * | ||
| 12 | * This library is distributed in the hope that it will be useful, | ||
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 15 | * Lesser General Public License for more details. | ||
| 16 | * | ||
| 17 | * You should have received a copy of the GNU Lesser General Public | ||
| 18 | * License along with this library; if not, write to the Free Software | ||
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
| 20 | */ | ||
| 21 | |||
| 22 | #ifndef USERPREF_H | ||
| 23 | #define USERPREF_H | ||
| 24 | |||
| 25 | #include <gnutls/gnutls.h> | ||
| 26 | #include <glib.h> | ||
| 27 | |||
| 28 | #define USERPREF_E_SUCCESS 0 | ||
| 29 | #define USERPREF_E_INVALID_ARG -1 | ||
| 30 | #define USERPREF_E_INVALID_CONF -2 | ||
| 31 | #define USERPREF_E_SSL_ERROR -3 | ||
| 32 | |||
| 33 | #define USERPREF_E_UNKNOWN_ERROR -256 | ||
| 34 | |||
| 35 | typedef int16_t userpref_error_t; | ||
| 36 | |||
| 37 | G_GNUC_INTERNAL userpref_error_t userpref_get_keys_and_certs(gnutls_x509_privkey_t root_privkey, gnutls_x509_crt_t root_crt, gnutls_x509_privkey_t host_privkey, gnutls_x509_crt_t host_crt); | ||
| 38 | G_GNUC_INTERNAL userpref_error_t userpref_set_keys_and_certs(gnutls_datum_t * root_key, gnutls_datum_t * root_cert, gnutls_datum_t * host_key, gnutls_datum_t * host_cert); | ||
| 39 | G_GNUC_INTERNAL userpref_error_t userpref_get_certs_as_pem(gnutls_datum_t *pem_root_cert, gnutls_datum_t *pem_host_cert); | ||
| 40 | G_GNUC_INTERNAL userpref_error_t userpref_set_device_public_key(const char *uuid, gnutls_datum_t public_key); | ||
| 41 | userpref_error_t userpref_remove_device_public_key(const char *uuid); | ||
| 42 | G_GNUC_INTERNAL int userpref_has_device_public_key(const char *uuid); | ||
| 43 | userpref_error_t userpref_get_paired_uuids(char ***list, unsigned int *count); | ||
| 44 | void userpref_get_host_id(char **host_id); | ||
| 45 | |||
| 46 | #endif | ||
