1 /* 2 * Copyright © 2014 Nikos Mavrogiannopoulos 3 * 4 * Author: Nikos Mavrogiannopoulos 5 * 6 * GnuTLS is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU Lesser General Public License 8 * as published by the Free Software Foundation; either version 2.1 of 9 * the License, or (at your option) any later version. 10 * 11 * This library is distributed in the hope that it will be useful, but 12 * WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * Lesser General Public License for more details. 15 * 16 * You should have received a copy of the GNU Lesser General Public License 17 * along with this program. If not, see <https://www.gnu.org/licenses/> 18 * 19 */ 20 21 #ifndef GNUTLS_LIB_URLS_H 22 #define GNUTLS_LIB_URLS_H 23 24 #define PKCS11_URL "pkcs11:" 25 #define SYSTEM_URL "system:" 26 #define TPMKEY_URL "tpmkey:" 27 28 #define PKCS11_URL_SIZE (sizeof(PKCS11_URL)-1) 29 #define SYSTEM_URL_SIZE (sizeof(SYSTEM_URL)-1) 30 #define TPMKEY_URL_SIZE (sizeof(TPMKEY_URL)-1) 31 32 #include <gnutls/urls.h> 33 34 extern gnutls_custom_url_st _gnutls_custom_urls[]; 35 extern unsigned _gnutls_custom_urls_size; 36 37 int _gnutls_url_is_known(const char *url); 38 39 int _gnutls_get_raw_issuer(const char *url, gnutls_x509_crt_t cert, 40 gnutls_datum_t * issuer, 41 unsigned int flags); 42 43 #endif /* GNUTLS_LIB_URLS_H */ 44