mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
moved files to comply with rest of directory structure of RS
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-OpenPGP@5260 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
3b5816e4f8
commit
ba0cca637b
@ -1,63 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2005-2008 Nominet UK (www.nic.uk)
|
||||
* All rights reserved.
|
||||
* Contributors: Ben Laurie, Rachel Willmer. The Contributors have asserted
|
||||
* their moral rights under the UK Copyright Design and Patents Act 1988 to
|
||||
* be recorded as the authors of this copyright work.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License.
|
||||
*
|
||||
* You may obtain a copy of the License at
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
*
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/** \file
|
||||
*/
|
||||
|
||||
#include <openpgpsdk/packet.h>
|
||||
|
||||
#define DECLARE_ARRAY(type,arr) unsigned n##arr; unsigned n##arr##_allocated; type *arr
|
||||
#define EXPAND_ARRAY(str,arr) do if(str->n##arr == str->n##arr##_allocated) \
|
||||
{ \
|
||||
str->n##arr##_allocated=str->n##arr##_allocated*2+10; \
|
||||
str->arr=realloc(str->arr,str->n##arr##_allocated*sizeof *str->arr); \
|
||||
} while(0)
|
||||
|
||||
/** ops_keydata_key_t
|
||||
*/
|
||||
typedef union
|
||||
{
|
||||
ops_public_key_t pkey;
|
||||
ops_secret_key_t skey;
|
||||
} ops_keydata_key_t;
|
||||
|
||||
|
||||
/** sigpacket_t */
|
||||
typedef struct
|
||||
{
|
||||
ops_user_id_t* userid;
|
||||
ops_packet_t* packet;
|
||||
} sigpacket_t;
|
||||
|
||||
// XXX: gonna have to expand this to hold onto subkeys, too...
|
||||
/** \struct ops_keydata
|
||||
* \todo expand to hold onto subkeys
|
||||
*/
|
||||
struct ops_keydata
|
||||
{
|
||||
DECLARE_ARRAY(ops_user_id_t,uids);
|
||||
DECLARE_ARRAY(ops_packet_t,packets);
|
||||
DECLARE_ARRAY(sigpacket_t, sigs);
|
||||
unsigned char key_id[8];
|
||||
ops_fingerprint_t fingerprint;
|
||||
ops_content_tag_t type;
|
||||
ops_keydata_key_t key;
|
||||
};
|
@ -6,12 +6,16 @@ DEFINES *= OPENSSL_NO_IDEA
|
||||
QMAKE_CXXFLAGS *= -Wall -Werror -W
|
||||
|
||||
TARGET = ops
|
||||
DESTDIR = ../lib
|
||||
DESTDIR = lib
|
||||
DEPENDPATH += .
|
||||
INCLUDEPATH += . ../include
|
||||
INCLUDEPATH += .
|
||||
|
||||
#################################### Windows #####################################
|
||||
|
||||
linux-* {
|
||||
OBJECTS_DIR = temp/linux/obj
|
||||
}
|
||||
|
||||
win32 {
|
||||
SSL_DIR = ../../../../OpenSSL
|
||||
ZLIB_DIR = ../../../zlib-1.2.3
|
||||
@ -21,41 +25,75 @@ win32 {
|
||||
}
|
||||
|
||||
# Input
|
||||
HEADERS += keyring_local.h parse_local.h
|
||||
SOURCES += accumulate.c \
|
||||
compress.c \
|
||||
create.c \
|
||||
crypto.c \
|
||||
errors.c \
|
||||
fingerprint.c \
|
||||
hash.c \
|
||||
keyring.c \
|
||||
lists.c \
|
||||
memory.c \
|
||||
openssl_crypto.c \
|
||||
packet-parse.c \
|
||||
packet-print.c \
|
||||
packet-show.c \
|
||||
random.c \
|
||||
reader.c \
|
||||
reader_armoured.c \
|
||||
reader_encrypted_se.c \
|
||||
reader_encrypted_seip.c \
|
||||
reader_fd.c \
|
||||
reader_hashed.c \
|
||||
reader_mem.c \
|
||||
readerwriter.c \
|
||||
signature.c \
|
||||
symmetric.c \
|
||||
util.c \
|
||||
validate.c \
|
||||
writer.c \
|
||||
writer_armour.c \
|
||||
writer_partial.c \
|
||||
writer_literal.c \
|
||||
writer_encrypt.c \
|
||||
writer_encrypt_se_ip.c \
|
||||
writer_fd.c \
|
||||
writer_memory.c \
|
||||
writer_skey_checksum.c \
|
||||
writer_stream_encrypt_se_ip.c
|
||||
HEADERS += openpgpsdk/writer.h \
|
||||
openpgpsdk/writer_armoured.h \
|
||||
openpgpsdk/version.h \
|
||||
openpgpsdk/validate.h \
|
||||
openpgpsdk/util.h \
|
||||
openpgpsdk/types.h \
|
||||
openpgpsdk/streamwriter.h \
|
||||
openpgpsdk/std_print.h \
|
||||
openpgpsdk/signature.h \
|
||||
openpgpsdk/readerwriter.h \
|
||||
openpgpsdk/random.h \
|
||||
openpgpsdk/partial.h \
|
||||
openpgpsdk/packet-show.h \
|
||||
openpgpsdk/packet-show-cast.h \
|
||||
openpgpsdk/packet-parse.h \
|
||||
openpgpsdk/packet.h \
|
||||
openpgpsdk/memory.h \
|
||||
openpgpsdk/literal.h \
|
||||
openpgpsdk/lists.h \
|
||||
openpgpsdk/keyring.h \
|
||||
openpgpsdk/hash.h \
|
||||
openpgpsdk/final.h \
|
||||
openpgpsdk/defs.h \
|
||||
openpgpsdk/errors.h \
|
||||
openpgpsdk/crypto.h \
|
||||
openpgpsdk/create.h \
|
||||
openpgpsdk/configure.h \
|
||||
openpgpsdk/compress.h \
|
||||
openpgpsdk/callback.h \
|
||||
openpgpsdk/accumulate.h \
|
||||
openpgpsdk/armour.h \
|
||||
openpgpsdk/parse_local.h \
|
||||
openpgpsdk/keyring_local.h
|
||||
|
||||
|
||||
SOURCES += openpgpsdk/accumulate.c \
|
||||
openpgpsdk/compress.c \
|
||||
openpgpsdk/create.c \
|
||||
openpgpsdk/crypto.c \
|
||||
openpgpsdk/errors.c \
|
||||
openpgpsdk/fingerprint.c \
|
||||
openpgpsdk/hash.c \
|
||||
openpgpsdk/keyring.c \
|
||||
openpgpsdk/lists.c \
|
||||
openpgpsdk/memory.c \
|
||||
openpgpsdk/openssl_crypto.c \
|
||||
openpgpsdk/packet-parse.c \
|
||||
openpgpsdk/packet-print.c \
|
||||
openpgpsdk/packet-show.c \
|
||||
openpgpsdk/random.c \
|
||||
openpgpsdk/reader.c \
|
||||
openpgpsdk/reader_armoured.c \
|
||||
openpgpsdk/reader_encrypted_se.c \
|
||||
openpgpsdk/reader_encrypted_seip.c \
|
||||
openpgpsdk/reader_fd.c \
|
||||
openpgpsdk/reader_hashed.c \
|
||||
openpgpsdk/reader_mem.c \
|
||||
openpgpsdk/readerwriter.c \
|
||||
openpgpsdk/signature.c \
|
||||
openpgpsdk/symmetric.c \
|
||||
openpgpsdk/util.c \
|
||||
openpgpsdk/validate.c \
|
||||
openpgpsdk/writer.c \
|
||||
openpgpsdk/writer_armour.c \
|
||||
openpgpsdk/writer_partial.c \
|
||||
openpgpsdk/writer_literal.c \
|
||||
openpgpsdk/writer_encrypt.c \
|
||||
openpgpsdk/writer_encrypt_se_ip.c \
|
||||
openpgpsdk/writer_fd.c \
|
||||
openpgpsdk/writer_memory.c \
|
||||
openpgpsdk/writer_skey_checksum.c \
|
||||
openpgpsdk/writer_stream_encrypt_se_ip.c
|
||||
|
Loading…
Reference in New Issue
Block a user