From 371b20b54cfceaa7071e57fd4d0760feaa6a99ed Mon Sep 17 00:00:00 2001 From: Justin Karneges Date: Thu, 6 Jan 2005 22:46:08 +0000 Subject: [PATCH] initial files for securemessage (pgp, smime) svn path=/trunk/kdesupport/qca/; revision=375965 --- include/QtCrypto/qca_securemessage.h | 57 ++++++++++++++++++++++++++++ qca.pro | 2 + src/qca_securemessage.cpp | 42 ++++++++++++++++++++ 3 files changed, 101 insertions(+) create mode 100644 include/QtCrypto/qca_securemessage.h create mode 100644 src/qca_securemessage.cpp diff --git a/include/QtCrypto/qca_securemessage.h b/include/QtCrypto/qca_securemessage.h new file mode 100644 index 00000000..eef2d7dd --- /dev/null +++ b/include/QtCrypto/qca_securemessage.h @@ -0,0 +1,57 @@ +/* + * qca_securemessage.h - Qt Cryptographic Architecture + * Copyright (C) 2003-2005 Justin Karneges + * Copyright (C) 2004,2005 Brad Hards + * + * 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, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + +#ifndef QCA_SECUREMESSAGE_H +#define QCA_SECUREMESSAGE_H + +#include +#include "qca_core.h" + +namespace QCA +{ + class SecureMessage : public QObject + { + Q_OBJECT + public: + // encrypt, decrypt, sign, verify + }; + + class SecureMessageSystem : public QObject + { + Q_OBJECT + public: + // setup, passphrase control + }; + + class OpenPGP : public SecureMessageSystem + { + Q_OBJECT + public: + }; + + class SMIME : public SecureMessageSystem + { + Q_OBJECT + public: + }; +} + +#endif diff --git a/qca.pro b/qca.pro index 28b50b4a..8bfad661 100644 --- a/qca.pro +++ b/qca.pro @@ -37,6 +37,7 @@ PUBLIC_HEADERS += \ $$QCA_INC/qca_publickey.h \ $$QCA_INC/qca_cert.h \ $$QCA_INC/qca_securelayer.h \ + $$QCA_INC/qca_securemessage.h \ $$QCA_INC/qcaprovider.h \ HEADERS += $$PRIVATE_HEADERS $$PUBLIC_HEADERS @@ -50,6 +51,7 @@ SOURCES += \ $$QCA_CPP/qca_publickey.cpp \ $$QCA_CPP/qca_cert.cpp \ $$QCA_CPP/qca_securelayer.cpp \ + $$QCA_CPP/qca_securemessage.cpp \ $$QCA_CPP/qca_default.cpp DEFINES += QCA_NO_SYSTEMSTORE diff --git a/src/qca_securemessage.cpp b/src/qca_securemessage.cpp new file mode 100644 index 00000000..18d85b59 --- /dev/null +++ b/src/qca_securemessage.cpp @@ -0,0 +1,42 @@ +/* + * qca_securemessage.cpp - Qt Cryptographic Architecture + * Copyright (C) 2003-2005 Justin Karneges + * Copyright (C) 2004,2005 Brad Hards + * + * 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, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + +#include "qca_securemessage.h" + +namespace QCA { + +//---------------------------------------------------------------------------- +// SecureMessage +//---------------------------------------------------------------------------- + +//---------------------------------------------------------------------------- +// SecureMessageSystem +//---------------------------------------------------------------------------- + +//---------------------------------------------------------------------------- +// OpenPGP +//---------------------------------------------------------------------------- + +//---------------------------------------------------------------------------- +// SMIME +//---------------------------------------------------------------------------- + +}