Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. /*
  2.  * Copyright 2009 Paul Blokus <paul_pl@users.sourceforge.net>
  3.  *
  4.  * This file is part of NetSurf, http://www.netsurf-browser.org/
  5.  *
  6.  * NetSurf is free software; you can redistribute it and/or modify
  7.  * it under the terms of the GNU General Public License as published by
  8.  * the Free Software Foundation; version 2 of the License.
  9.  *
  10.  * NetSurf is distributed in the hope that it will be useful,
  11.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.  * GNU General Public License for more details.
  14.  *
  15.  * You should have received a copy of the GNU General Public License
  16.  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  17.  */
  18.  
  19.  
  20. #ifndef _NETSURF_DESKTOP_SSLCERT_H_
  21. #define _NETSURF_DESKTOP_SSLCERT_H_
  22.  
  23. #include <stdbool.h>
  24.  
  25. #include "desktop/tree.h"
  26.  
  27. struct sslcert_session_data;
  28.  
  29. void sslcert_init(const char* icon_name);
  30. unsigned int sslcert_get_tree_flags(void);
  31. void sslcert_cleanup(void);
  32.  
  33. struct sslcert_session_data *sslcert_create_session_data(unsigned long num,
  34.                 nsurl *url, llcache_query_response cb, void *cbpw);
  35. bool sslcert_load_tree(struct tree *tree,
  36.                 const struct ssl_cert_info *certs,
  37.                 struct sslcert_session_data *data);
  38.                
  39. bool sslcert_reject(struct sslcert_session_data *session);
  40. bool sslcert_accept(struct sslcert_session_data *session);
  41.  
  42.                
  43. #endif
  44.