diff options
author | Christian Persch <chpe@src.gnome.org> | 2007-09-14 04:35:29 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2007-09-14 04:35:29 +0800 |
commit | c7751489980a228c7b0270fcec2823b030d2ac77 (patch) | |
tree | f917652803a9982032923d51fe46873ce8127163 /embed/xulrunner/utils | |
parent | aa53ef8dd2c8174a2428b2aa360c8dd0e045543e (diff) | |
download | gsoc2013-epiphany-c7751489980a228c7b0270fcec2823b030d2ac77.tar gsoc2013-epiphany-c7751489980a228c7b0270fcec2823b030d2ac77.tar.gz gsoc2013-epiphany-c7751489980a228c7b0270fcec2823b030d2ac77.tar.bz2 gsoc2013-epiphany-c7751489980a228c7b0270fcec2823b030d2ac77.tar.lz gsoc2013-epiphany-c7751489980a228c7b0270fcec2823b030d2ac77.tar.xz gsoc2013-epiphany-c7751489980a228c7b0270fcec2823b030d2ac77.tar.zst gsoc2013-epiphany-c7751489980a228c7b0270fcec2823b030d2ac77.zip |
Move components from embed/ to components/ and fix the build.
svn path=/trunk/; revision=7431
Diffstat (limited to 'embed/xulrunner/utils')
-rw-r--r-- | embed/xulrunner/utils/EphyBadCertRejector.cpp | 68 | ||||
-rw-r--r-- | embed/xulrunner/utils/EphyBadCertRejector.h | 36 | ||||
-rw-r--r-- | embed/xulrunner/utils/Makefile.am | 10 |
3 files changed, 110 insertions, 4 deletions
diff --git a/embed/xulrunner/utils/EphyBadCertRejector.cpp b/embed/xulrunner/utils/EphyBadCertRejector.cpp new file mode 100644 index 000000000..5aad7d92f --- /dev/null +++ b/embed/xulrunner/utils/EphyBadCertRejector.cpp @@ -0,0 +1,68 @@ +/* + * Copyright © 2005 Christian Persch + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + * $Id$ + */ + +#include <xpcom-config.h> +#include "config.h" + +#include "EphyBadCertRejector.h" + +NS_IMPL_THREADSAFE_ISUPPORTS1 (EphyBadCertRejector, nsIBadCertListener) + +/* boolean confirmUnknownIssuer (in nsIInterfaceRequestor socketInfo, in nsIX509Cert cert, out short certAddType); */ +NS_IMETHODIMP +EphyBadCertRejector::ConfirmUnknownIssuer(nsIInterfaceRequestor *socketInfo, + nsIX509Cert *cert, + PRInt16 *certAddType, + PRBool *_retval) +{ + *certAddType = nsIBadCertListener::UNINIT_ADD_FLAG; + *_retval = PR_FALSE; + return NS_OK; +} + +/* boolean confirmMismatchDomain (in nsIInterfaceRequestor socketInfo, in AUTF8String targetURL, in nsIX509Cert cert); */ +NS_IMETHODIMP +EphyBadCertRejector::ConfirmMismatchDomain(nsIInterfaceRequestor *socketInfo, + const nsACString & targetURL, + nsIX509Cert *cert, + PRBool *_retval) +{ + *_retval = PR_FALSE; + return NS_OK; +} + +/* boolean confirmCertExpired (in nsIInterfaceRequestor socketInfo, in nsIX509Cert cert); */ +NS_IMETHODIMP +EphyBadCertRejector::ConfirmCertExpired(nsIInterfaceRequestor *socketInfo, + nsIX509Cert *cert, + PRBool *_retval) +{ + *_retval = PR_FALSE; + return NS_OK; +} + +/* void notifyCrlNextupdate (in nsIInterfaceRequestor socketInfo, in AUTF8String targetURL, in nsIX509Cert cert); */ +NS_IMETHODIMP +EphyBadCertRejector::NotifyCrlNextupdate(nsIInterfaceRequestor *socketInfo, + const nsACString & targetURL, + nsIX509Cert *cert) +{ + return NS_OK; +} diff --git a/embed/xulrunner/utils/EphyBadCertRejector.h b/embed/xulrunner/utils/EphyBadCertRejector.h new file mode 100644 index 000000000..dcab75c6c --- /dev/null +++ b/embed/xulrunner/utils/EphyBadCertRejector.h @@ -0,0 +1,36 @@ +/* + * Copyright © 2005 Christian Persch + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + * $Id$ + */ + +#ifndef EPHY_BAD_CERT_REJECTOR_H +#define EPHY_BAD_CERT_REJECTOR_H + +#include <nsIBadCertListener.h> + +class EphyBadCertRejector : public nsIBadCertListener +{ + public: + NS_DECL_ISUPPORTS + NS_DECL_NSIBADCERTLISTENER + + EphyBadCertRejector () { } + ~EphyBadCertRejector () { } +}; + +#endif diff --git a/embed/xulrunner/utils/Makefile.am b/embed/xulrunner/utils/Makefile.am index 5d6fe699d..faeab4716 100644 --- a/embed/xulrunner/utils/Makefile.am +++ b/embed/xulrunner/utils/Makefile.am @@ -3,10 +3,12 @@ NULL = noinst_LTLIBRARIES = libephyxulrunnerutils.la libephyxulrunnerutils_la_SOURCES = \ - AutoJSContextStack.cpp \ - AutoJSContextStack.h \ - AutoWindowModalState.cpp \ - AutoWindowModalState.h \ + AutoJSContextStack.cpp \ + AutoJSContextStack.h \ + AutoWindowModalState.cpp \ + AutoWindowModalState.h \ + EphyBadCertRejector.cpp \ + EphyBadCertRejector.h \ $(NULL) libephyxulrunnerutils_la_CPPFLAGS = \ |