summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/crypto
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/libcrypto/crypto.h611
-rw-r--r--src/lib/libcrypto/crypto/Makefile573
-rw-r--r--src/lib/libcrypto/crypto/arch/alpha/opensslconf.h271
-rw-r--r--src/lib/libcrypto/crypto/arch/amd64/opensslconf.h265
-rw-r--r--src/lib/libcrypto/crypto/arch/arm/opensslconf.h273
-rw-r--r--src/lib/libcrypto/crypto/arch/hppa/opensslconf.h273
-rw-r--r--src/lib/libcrypto/crypto/arch/hppa64/opensslconf.h273
-rw-r--r--src/lib/libcrypto/crypto/arch/i386/opensslconf.h273
-rw-r--r--src/lib/libcrypto/crypto/arch/m88k/opensslconf.h273
-rw-r--r--src/lib/libcrypto/crypto/arch/mips64/opensslconf.h273
-rw-r--r--src/lib/libcrypto/crypto/arch/powerpc/opensslconf.h273
-rw-r--r--src/lib/libcrypto/crypto/arch/sh/opensslconf.h273
-rw-r--r--src/lib/libcrypto/crypto/arch/sparc/opensslconf.h273
-rw-r--r--src/lib/libcrypto/crypto/arch/sparc64/opensslconf.h273
-rw-r--r--src/lib/libcrypto/crypto/arch/vax/bn_asm_vax.S436
-rw-r--r--src/lib/libcrypto/crypto/arch/vax/opensslconf.h273
-rw-r--r--src/lib/libcrypto/crypto/shlib_version2
17 files changed, 0 insertions, 5161 deletions
diff --git a/src/lib/libcrypto/crypto.h b/src/lib/libcrypto/crypto.h
deleted file mode 100644
index f92fc5182d..0000000000
--- a/src/lib/libcrypto/crypto.h
+++ /dev/null
@@ -1,611 +0,0 @@
1/* crypto/crypto.h */
2/* ====================================================================
3 * Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in
14 * the documentation and/or other materials provided with the
15 * distribution.
16 *
17 * 3. All advertising materials mentioning features or use of this
18 * software must display the following acknowledgment:
19 * "This product includes software developed by the OpenSSL Project
20 * for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
21 *
22 * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
23 * endorse or promote products derived from this software without
24 * prior written permission. For written permission, please contact
25 * openssl-core@openssl.org.
26 *
27 * 5. Products derived from this software may not be called "OpenSSL"
28 * nor may "OpenSSL" appear in their names without prior written
29 * permission of the OpenSSL Project.
30 *
31 * 6. Redistributions of any form whatsoever must retain the following
32 * acknowledgment:
33 * "This product includes software developed by the OpenSSL Project
34 * for use in the OpenSSL Toolkit (http://www.openssl.org/)"
35 *
36 * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
37 * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
38 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
39 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
40 * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
41 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
42 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
43 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
44 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
45 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
46 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
47 * OF THE POSSIBILITY OF SUCH DAMAGE.
48 * ====================================================================
49 *
50 * This product includes cryptographic software written by Eric Young
51 * (eay@cryptsoft.com). This product includes software written by Tim
52 * Hudson (tjh@cryptsoft.com).
53 *
54 */
55/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
56 * All rights reserved.
57 *
58 * This package is an SSL implementation written
59 * by Eric Young (eay@cryptsoft.com).
60 * The implementation was written so as to conform with Netscapes SSL.
61 *
62 * This library is free for commercial and non-commercial use as long as
63 * the following conditions are aheared to. The following conditions
64 * apply to all code found in this distribution, be it the RC4, RSA,
65 * lhash, DES, etc., code; not just the SSL code. The SSL documentation
66 * included with this distribution is covered by the same copyright terms
67 * except that the holder is Tim Hudson (tjh@cryptsoft.com).
68 *
69 * Copyright remains Eric Young's, and as such any Copyright notices in
70 * the code are not to be removed.
71 * If this package is used in a product, Eric Young should be given attribution
72 * as the author of the parts of the library used.
73 * This can be in the form of a textual message at program startup or
74 * in documentation (online or textual) provided with the package.
75 *
76 * Redistribution and use in source and binary forms, with or without
77 * modification, are permitted provided that the following conditions
78 * are met:
79 * 1. Redistributions of source code must retain the copyright
80 * notice, this list of conditions and the following disclaimer.
81 * 2. Redistributions in binary form must reproduce the above copyright
82 * notice, this list of conditions and the following disclaimer in the
83 * documentation and/or other materials provided with the distribution.
84 * 3. All advertising materials mentioning features or use of this software
85 * must display the following acknowledgement:
86 * "This product includes cryptographic software written by
87 * Eric Young (eay@cryptsoft.com)"
88 * The word 'cryptographic' can be left out if the rouines from the library
89 * being used are not cryptographic related :-).
90 * 4. If you include any Windows specific code (or a derivative thereof) from
91 * the apps directory (application code) you must include an acknowledgement:
92 * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
93 *
94 * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
95 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
96 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
97 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
98 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
99 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
100 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
101 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
102 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
103 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
104 * SUCH DAMAGE.
105 *
106 * The licence and distribution terms for any publically available version or
107 * derivative of this code cannot be changed. i.e. this code cannot simply be
108 * copied and put under another distribution licence
109 * [including the GNU Public Licence.]
110 */
111/* ====================================================================
112 * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED.
113 * ECDH support in OpenSSL originally developed by
114 * SUN MICROSYSTEMS, INC., and contributed to the OpenSSL project.
115 */
116
117#ifndef HEADER_CRYPTO_H
118#define HEADER_CRYPTO_H
119
120#include <stdlib.h>
121
122#include <openssl/e_os2.h>
123
124#ifndef OPENSSL_NO_FP_API
125#include <stdio.h>
126#endif
127
128#include <openssl/stack.h>
129#include <openssl/safestack.h>
130#include <openssl/opensslv.h>
131#include <openssl/ossl_typ.h>
132
133#ifdef CHARSET_EBCDIC
134#include <openssl/ebcdic.h>
135#endif
136
137/* Resolve problems on some operating systems with symbol names that clash
138 one way or another */
139#include <openssl/symhacks.h>
140
141#ifdef __cplusplus
142extern "C" {
143#endif
144
145/* Backward compatibility to SSLeay */
146/* This is more to be used to check the correct DLL is being used
147 * in the MS world. */
148#define SSLEAY_VERSION_NUMBER OPENSSL_VERSION_NUMBER
149#define SSLEAY_VERSION 0
150/* #define SSLEAY_OPTIONS 1 no longer supported */
151#define SSLEAY_CFLAGS 2
152#define SSLEAY_BUILT_ON 3
153#define SSLEAY_PLATFORM 4
154#define SSLEAY_DIR 5
155
156/* Already declared in ossl_typ.h */
157#if 0
158typedef struct crypto_ex_data_st CRYPTO_EX_DATA;
159/* Called when a new object is created */
160typedef int CRYPTO_EX_new(void *parent, void *ptr, CRYPTO_EX_DATA *ad,
161 int idx, long argl, void *argp);
162/* Called when an object is free()ed */
163typedef void CRYPTO_EX_free(void *parent, void *ptr, CRYPTO_EX_DATA *ad,
164 int idx, long argl, void *argp);
165/* Called when we need to dup an object */
166typedef int CRYPTO_EX_dup(CRYPTO_EX_DATA *to, CRYPTO_EX_DATA *from, void *from_d,
167 int idx, long argl, void *argp);
168#endif
169
170/* A generic structure to pass assorted data in a expandable way */
171typedef struct openssl_item_st
172 {
173 int code;
174 void *value; /* Not used for flag attributes */
175 size_t value_size; /* Max size of value for output, length for input */
176 size_t *value_length; /* Returned length of value for output */
177 } OPENSSL_ITEM;
178
179
180/* When changing the CRYPTO_LOCK_* list, be sure to maintin the text lock
181 * names in cryptlib.c
182 */
183
184#define CRYPTO_LOCK_ERR 1
185#define CRYPTO_LOCK_EX_DATA 2
186#define CRYPTO_LOCK_X509 3
187#define CRYPTO_LOCK_X509_INFO 4
188#define CRYPTO_LOCK_X509_PKEY 5
189#define CRYPTO_LOCK_X509_CRL 6
190#define CRYPTO_LOCK_X509_REQ 7
191#define CRYPTO_LOCK_DSA 8
192#define CRYPTO_LOCK_RSA 9
193#define CRYPTO_LOCK_EVP_PKEY 10
194#define CRYPTO_LOCK_X509_STORE 11
195#define CRYPTO_LOCK_SSL_CTX 12
196#define CRYPTO_LOCK_SSL_CERT 13
197#define CRYPTO_LOCK_SSL_SESSION 14
198#define CRYPTO_LOCK_SSL_SESS_CERT 15
199#define CRYPTO_LOCK_SSL 16
200#define CRYPTO_LOCK_SSL_METHOD 17
201#define CRYPTO_LOCK_RAND 18
202#define CRYPTO_LOCK_RAND2 19
203#define CRYPTO_LOCK_MALLOC 20
204#define CRYPTO_LOCK_BIO 21
205#define CRYPTO_LOCK_GETHOSTBYNAME 22
206#define CRYPTO_LOCK_GETSERVBYNAME 23
207#define CRYPTO_LOCK_READDIR 24
208#define CRYPTO_LOCK_RSA_BLINDING 25
209#define CRYPTO_LOCK_DH 26
210#define CRYPTO_LOCK_MALLOC2 27
211#define CRYPTO_LOCK_DSO 28
212#define CRYPTO_LOCK_DYNLOCK 29
213#define CRYPTO_LOCK_ENGINE 30
214#define CRYPTO_LOCK_UI 31
215#define CRYPTO_LOCK_ECDSA 32
216#define CRYPTO_LOCK_EC 33
217#define CRYPTO_LOCK_ECDH 34
218#define CRYPTO_LOCK_BN 35
219#define CRYPTO_LOCK_EC_PRE_COMP 36
220#define CRYPTO_LOCK_STORE 37
221#define CRYPTO_LOCK_COMP 38
222#define CRYPTO_LOCK_FIPS 39
223#define CRYPTO_LOCK_FIPS2 40
224#define CRYPTO_NUM_LOCKS 41
225
226#define CRYPTO_LOCK 1
227#define CRYPTO_UNLOCK 2
228#define CRYPTO_READ 4
229#define CRYPTO_WRITE 8
230
231#ifndef OPENSSL_NO_LOCKING
232#ifndef CRYPTO_w_lock
233#define CRYPTO_w_lock(type) \
234 CRYPTO_lock(CRYPTO_LOCK|CRYPTO_WRITE,type,__FILE__,__LINE__)
235#define CRYPTO_w_unlock(type) \
236 CRYPTO_lock(CRYPTO_UNLOCK|CRYPTO_WRITE,type,__FILE__,__LINE__)
237#define CRYPTO_r_lock(type) \
238 CRYPTO_lock(CRYPTO_LOCK|CRYPTO_READ,type,__FILE__,__LINE__)
239#define CRYPTO_r_unlock(type) \
240 CRYPTO_lock(CRYPTO_UNLOCK|CRYPTO_READ,type,__FILE__,__LINE__)
241#define CRYPTO_add(addr,amount,type) \
242 CRYPTO_add_lock(addr,amount,type,__FILE__,__LINE__)
243#endif
244#else
245#define CRYPTO_w_lock(a)
246#define CRYPTO_w_unlock(a)
247#define CRYPTO_r_lock(a)
248#define CRYPTO_r_unlock(a)
249#define CRYPTO_add(a,b,c) ((*(a))+=(b))
250#endif
251
252/* Some applications as well as some parts of OpenSSL need to allocate
253 and deallocate locks in a dynamic fashion. The following typedef
254 makes this possible in a type-safe manner. */
255/* struct CRYPTO_dynlock_value has to be defined by the application. */
256typedef struct
257 {
258 int references;
259 struct CRYPTO_dynlock_value *data;
260 } CRYPTO_dynlock;
261
262
263/* The following can be used to detect memory leaks in the SSLeay library.
264 * It used, it turns on malloc checking */
265
266#define CRYPTO_MEM_CHECK_OFF 0x0 /* an enume */
267#define CRYPTO_MEM_CHECK_ON 0x1 /* a bit */
268#define CRYPTO_MEM_CHECK_ENABLE 0x2 /* a bit */
269#define CRYPTO_MEM_CHECK_DISABLE 0x3 /* an enume */
270
271/* The following are bit values to turn on or off options connected to the
272 * malloc checking functionality */
273
274/* Adds time to the memory checking information */
275#define V_CRYPTO_MDEBUG_TIME 0x1 /* a bit */
276/* Adds thread number to the memory checking information */
277#define V_CRYPTO_MDEBUG_THREAD 0x2 /* a bit */
278
279#define V_CRYPTO_MDEBUG_ALL (V_CRYPTO_MDEBUG_TIME | V_CRYPTO_MDEBUG_THREAD)
280
281
282/* predec of the BIO type */
283typedef struct bio_st BIO_dummy;
284
285struct crypto_ex_data_st
286 {
287 STACK_OF(void) *sk;
288 int dummy; /* gcc is screwing up this data structure :-( */
289 };
290DECLARE_STACK_OF(void)
291
292/* This stuff is basically class callback functions
293 * The current classes are SSL_CTX, SSL, SSL_SESSION, and a few more */
294
295typedef struct crypto_ex_data_func_st
296 {
297 long argl; /* Arbitary long */
298 void *argp; /* Arbitary void * */
299 CRYPTO_EX_new *new_func;
300 CRYPTO_EX_free *free_func;
301 CRYPTO_EX_dup *dup_func;
302 } CRYPTO_EX_DATA_FUNCS;
303
304DECLARE_STACK_OF(CRYPTO_EX_DATA_FUNCS)
305
306/* Per class, we have a STACK of CRYPTO_EX_DATA_FUNCS for each CRYPTO_EX_DATA
307 * entry.
308 */
309
310#define CRYPTO_EX_INDEX_BIO 0
311#define CRYPTO_EX_INDEX_SSL 1
312#define CRYPTO_EX_INDEX_SSL_CTX 2
313#define CRYPTO_EX_INDEX_SSL_SESSION 3
314#define CRYPTO_EX_INDEX_X509_STORE 4
315#define CRYPTO_EX_INDEX_X509_STORE_CTX 5
316#define CRYPTO_EX_INDEX_RSA 6
317#define CRYPTO_EX_INDEX_DSA 7
318#define CRYPTO_EX_INDEX_DH 8
319#define CRYPTO_EX_INDEX_ENGINE 9
320#define CRYPTO_EX_INDEX_X509 10
321#define CRYPTO_EX_INDEX_UI 11
322#define CRYPTO_EX_INDEX_ECDSA 12
323#define CRYPTO_EX_INDEX_ECDH 13
324#define CRYPTO_EX_INDEX_COMP 14
325#define CRYPTO_EX_INDEX_STORE 15
326
327/* Dynamically assigned indexes start from this value (don't use directly, use
328 * via CRYPTO_ex_data_new_class). */
329#define CRYPTO_EX_INDEX_USER 100
330
331
332/* This is the default callbacks, but we can have others as well:
333 * this is needed in Win32 where the application malloc and the
334 * library malloc may not be the same.
335 */
336#define CRYPTO_malloc_init() CRYPTO_set_mem_functions(\
337 malloc, realloc, free)
338
339#if defined CRYPTO_MDEBUG_ALL || defined CRYPTO_MDEBUG_TIME || defined CRYPTO_MDEBUG_THREAD
340# ifndef CRYPTO_MDEBUG /* avoid duplicate #define */
341# define CRYPTO_MDEBUG
342# endif
343#endif
344
345/* Set standard debugging functions (not done by default
346 * unless CRYPTO_MDEBUG is defined) */
347#define CRYPTO_malloc_debug_init() do {\
348 CRYPTO_set_mem_debug_functions(\
349 CRYPTO_dbg_malloc,\
350 CRYPTO_dbg_realloc,\
351 CRYPTO_dbg_free,\
352 CRYPTO_dbg_set_options,\
353 CRYPTO_dbg_get_options);\
354 } while(0)
355
356int CRYPTO_mem_ctrl(int mode);
357int CRYPTO_is_mem_check_on(void);
358
359/* for applications */
360#define MemCheck_start() CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON)
361#define MemCheck_stop() CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_OFF)
362
363/* for library-internal use */
364#define MemCheck_on() CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ENABLE)
365#define MemCheck_off() CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_DISABLE)
366#define is_MemCheck_on() CRYPTO_is_mem_check_on()
367
368#define OPENSSL_malloc(num) CRYPTO_malloc((int)num,__FILE__,__LINE__)
369#define OPENSSL_strdup(str) CRYPTO_strdup((str),__FILE__,__LINE__)
370#define OPENSSL_realloc(addr,num) \
371 CRYPTO_realloc((char *)addr,(int)num,__FILE__,__LINE__)
372#define OPENSSL_realloc_clean(addr,old_num,num) \
373 CRYPTO_realloc_clean(addr,old_num,num,__FILE__,__LINE__)
374#define OPENSSL_remalloc(addr,num) \
375 CRYPTO_remalloc((char **)addr,(int)num,__FILE__,__LINE__)
376#define OPENSSL_freeFunc CRYPTO_free
377#define OPENSSL_free(addr) CRYPTO_free(addr)
378
379#define OPENSSL_malloc_locked(num) \
380 CRYPTO_malloc_locked((int)num,__FILE__,__LINE__)
381#define OPENSSL_free_locked(addr) CRYPTO_free_locked(addr)
382
383
384const char *SSLeay_version(int type);
385unsigned long SSLeay(void);
386
387int OPENSSL_issetugid(void);
388
389/* An opaque type representing an implementation of "ex_data" support */
390typedef struct st_CRYPTO_EX_DATA_IMPL CRYPTO_EX_DATA_IMPL;
391/* Return an opaque pointer to the current "ex_data" implementation */
392const CRYPTO_EX_DATA_IMPL *CRYPTO_get_ex_data_implementation(void);
393/* Sets the "ex_data" implementation to be used (if it's not too late) */
394int CRYPTO_set_ex_data_implementation(const CRYPTO_EX_DATA_IMPL *i);
395/* Get a new "ex_data" class, and return the corresponding "class_index" */
396int CRYPTO_ex_data_new_class(void);
397/* Within a given class, get/register a new index */
398int CRYPTO_get_ex_new_index(int class_index, long argl, void *argp,
399 CRYPTO_EX_new *new_func, CRYPTO_EX_dup *dup_func,
400 CRYPTO_EX_free *free_func);
401/* Initialise/duplicate/free CRYPTO_EX_DATA variables corresponding to a given
402 * class (invokes whatever per-class callbacks are applicable) */
403int CRYPTO_new_ex_data(int class_index, void *obj, CRYPTO_EX_DATA *ad);
404int CRYPTO_dup_ex_data(int class_index, CRYPTO_EX_DATA *to,
405 CRYPTO_EX_DATA *from);
406void CRYPTO_free_ex_data(int class_index, void *obj, CRYPTO_EX_DATA *ad);
407/* Get/set data in a CRYPTO_EX_DATA variable corresponding to a particular index
408 * (relative to the class type involved) */
409int CRYPTO_set_ex_data(CRYPTO_EX_DATA *ad, int idx, void *val);
410void *CRYPTO_get_ex_data(const CRYPTO_EX_DATA *ad,int idx);
411/* This function cleans up all "ex_data" state. It mustn't be called under
412 * potential race-conditions. */
413void CRYPTO_cleanup_all_ex_data(void);
414
415int CRYPTO_get_new_lockid(char *name);
416
417int CRYPTO_num_locks(void); /* return CRYPTO_NUM_LOCKS (shared libs!) */
418void CRYPTO_lock(int mode, int type,const char *file,int line);
419void CRYPTO_set_locking_callback(void (*func)(int mode,int type,
420 const char *file,int line));
421void (*CRYPTO_get_locking_callback(void))(int mode,int type,const char *file,
422 int line);
423void CRYPTO_set_add_lock_callback(int (*func)(int *num,int mount,int type,
424 const char *file, int line));
425int (*CRYPTO_get_add_lock_callback(void))(int *num,int mount,int type,
426 const char *file,int line);
427
428/* Don't use this structure directly. */
429typedef struct crypto_threadid_st
430 {
431 void *ptr;
432 unsigned long val;
433 } CRYPTO_THREADID;
434/* Only use CRYPTO_THREADID_set_[numeric|pointer]() within callbacks */
435void CRYPTO_THREADID_set_numeric(CRYPTO_THREADID *id, unsigned long val);
436void CRYPTO_THREADID_set_pointer(CRYPTO_THREADID *id, void *ptr);
437int CRYPTO_THREADID_set_callback(void (*threadid_func)(CRYPTO_THREADID *));
438void (*CRYPTO_THREADID_get_callback(void))(CRYPTO_THREADID *);
439void CRYPTO_THREADID_current(CRYPTO_THREADID *id);
440int CRYPTO_THREADID_cmp(const CRYPTO_THREADID *a, const CRYPTO_THREADID *b);
441void CRYPTO_THREADID_cpy(CRYPTO_THREADID *dest, const CRYPTO_THREADID *src);
442unsigned long CRYPTO_THREADID_hash(const CRYPTO_THREADID *id);
443#ifndef OPENSSL_NO_DEPRECATED
444void CRYPTO_set_id_callback(unsigned long (*func)(void));
445unsigned long (*CRYPTO_get_id_callback(void))(void);
446unsigned long CRYPTO_thread_id(void);
447#endif
448
449const char *CRYPTO_get_lock_name(int type);
450int CRYPTO_add_lock(int *pointer,int amount,int type, const char *file,
451 int line);
452
453int CRYPTO_get_new_dynlockid(void);
454void CRYPTO_destroy_dynlockid(int i);
455struct CRYPTO_dynlock_value *CRYPTO_get_dynlock_value(int i);
456void CRYPTO_set_dynlock_create_callback(struct CRYPTO_dynlock_value *(*dyn_create_function)(const char *file, int line));
457void CRYPTO_set_dynlock_lock_callback(void (*dyn_lock_function)(int mode, struct CRYPTO_dynlock_value *l, const char *file, int line));
458void CRYPTO_set_dynlock_destroy_callback(void (*dyn_destroy_function)(struct CRYPTO_dynlock_value *l, const char *file, int line));
459struct CRYPTO_dynlock_value *(*CRYPTO_get_dynlock_create_callback(void))(const char *file,int line);
460void (*CRYPTO_get_dynlock_lock_callback(void))(int mode, struct CRYPTO_dynlock_value *l, const char *file,int line);
461void (*CRYPTO_get_dynlock_destroy_callback(void))(struct CRYPTO_dynlock_value *l, const char *file,int line);
462
463/* CRYPTO_set_mem_functions includes CRYPTO_set_locked_mem_functions --
464 * call the latter last if you need different functions */
465int CRYPTO_set_mem_functions(void *(*m)(size_t),void *(*r)(void *,size_t), void (*f)(void *));
466int CRYPTO_set_locked_mem_functions(void *(*m)(size_t), void (*free_func)(void *));
467int CRYPTO_set_mem_ex_functions(void *(*m)(size_t,const char *,int),
468 void *(*r)(void *,size_t,const char *,int),
469 void (*f)(void *));
470int CRYPTO_set_locked_mem_ex_functions(void *(*m)(size_t,const char *,int),
471 void (*free_func)(void *));
472int CRYPTO_set_mem_debug_functions(void (*m)(void *,int,const char *,int,int),
473 void (*r)(void *,void *,int,const char *,int,int),
474 void (*f)(void *,int),
475 void (*so)(long),
476 long (*go)(void));
477void CRYPTO_get_mem_functions(void *(**m)(size_t),void *(**r)(void *, size_t), void (**f)(void *));
478void CRYPTO_get_locked_mem_functions(void *(**m)(size_t), void (**f)(void *));
479void CRYPTO_get_mem_ex_functions(void *(**m)(size_t,const char *,int),
480 void *(**r)(void *, size_t,const char *,int),
481 void (**f)(void *));
482void CRYPTO_get_locked_mem_ex_functions(void *(**m)(size_t,const char *,int),
483 void (**f)(void *));
484void CRYPTO_get_mem_debug_functions(void (**m)(void *,int,const char *,int,int),
485 void (**r)(void *,void *,int,const char *,int,int),
486 void (**f)(void *,int),
487 void (**so)(long),
488 long (**go)(void));
489
490void *CRYPTO_malloc_locked(int num, const char *file, int line);
491void CRYPTO_free_locked(void *ptr);
492void *CRYPTO_malloc(int num, const char *file, int line);
493char *CRYPTO_strdup(const char *str, const char *file, int line);
494void CRYPTO_free(void *ptr);
495void *CRYPTO_realloc(void *addr,int num, const char *file, int line);
496void *CRYPTO_realloc_clean(void *addr,int old_num,int num,const char *file,
497 int line);
498void *CRYPTO_remalloc(void *addr,int num, const char *file, int line);
499
500void OPENSSL_cleanse(void *ptr, size_t len);
501
502void CRYPTO_set_mem_debug_options(long bits);
503long CRYPTO_get_mem_debug_options(void);
504
505#define CRYPTO_push_info(info) \
506 CRYPTO_push_info_(info, __FILE__, __LINE__);
507int CRYPTO_push_info_(const char *info, const char *file, int line);
508int CRYPTO_pop_info(void);
509int CRYPTO_remove_all_info(void);
510
511
512/* Default debugging functions (enabled by CRYPTO_malloc_debug_init() macro;
513 * used as default in CRYPTO_MDEBUG compilations): */
514/* The last argument has the following significance:
515 *
516 * 0: called before the actual memory allocation has taken place
517 * 1: called after the actual memory allocation has taken place
518 */
519void CRYPTO_dbg_malloc(void *addr,int num,const char *file,int line,int before_p);
520void CRYPTO_dbg_realloc(void *addr1,void *addr2,int num,const char *file,int line,int before_p);
521void CRYPTO_dbg_free(void *addr,int before_p);
522/* Tell the debugging code about options. By default, the following values
523 * apply:
524 *
525 * 0: Clear all options.
526 * V_CRYPTO_MDEBUG_TIME (1): Set the "Show Time" option.
527 * V_CRYPTO_MDEBUG_THREAD (2): Set the "Show Thread Number" option.
528 * V_CRYPTO_MDEBUG_ALL (3): 1 + 2
529 */
530void CRYPTO_dbg_set_options(long bits);
531long CRYPTO_dbg_get_options(void);
532
533
534#ifndef OPENSSL_NO_FP_API
535void CRYPTO_mem_leaks_fp(FILE *);
536#endif
537void CRYPTO_mem_leaks(struct bio_st *bio);
538/* unsigned long order, char *file, int line, int num_bytes, char *addr */
539typedef void *CRYPTO_MEM_LEAK_CB(unsigned long, const char *, int, int, void *);
540void CRYPTO_mem_leaks_cb(CRYPTO_MEM_LEAK_CB *cb);
541
542/* die if we have to */
543void OpenSSLDie(const char *file,int line,const char *assertion);
544#define OPENSSL_assert(e) (void)((e) ? 0 : (OpenSSLDie(__FILE__, __LINE__, #e),1))
545
546unsigned long *OPENSSL_ia32cap_loc(void);
547#define OPENSSL_ia32cap (*(OPENSSL_ia32cap_loc()))
548int OPENSSL_isservice(void);
549
550int FIPS_mode(void);
551int FIPS_mode_set(int r);
552
553void OPENSSL_init(void);
554
555#define fips_md_init(alg) fips_md_init_ctx(alg, alg)
556
557#ifdef OPENSSL_FIPS
558#define fips_md_init_ctx(alg, cx) \
559 int alg##_Init(cx##_CTX *c) \
560 { \
561 if (FIPS_mode()) OpenSSLDie(__FILE__, __LINE__, \
562 "Low level API call to digest " #alg " forbidden in FIPS mode!"); \
563 return private_##alg##_Init(c); \
564 } \
565 int private_##alg##_Init(cx##_CTX *c)
566
567#define fips_cipher_abort(alg) \
568 if (FIPS_mode()) OpenSSLDie(__FILE__, __LINE__, \
569 "Low level API call to cipher " #alg " forbidden in FIPS mode!")
570
571#else
572#define fips_md_init_ctx(alg, cx) \
573 int alg##_Init(cx##_CTX *c)
574#define fips_cipher_abort(alg) while(0)
575#endif
576
577/* CRYPTO_memcmp returns zero iff the |len| bytes at |a| and |b| are equal. It
578 * takes an amount of time dependent on |len|, but independent of the contents
579 * of |a| and |b|. Unlike memcmp, it cannot be used to put elements into a
580 * defined order as the return value when a != b is undefined, other than to be
581 * non-zero. */
582int CRYPTO_memcmp(const void *a, const void *b, size_t len);
583
584/* BEGIN ERROR CODES */
585/* The following lines are auto generated by the script mkerr.pl. Any changes
586 * made after this point may be overwritten when the script is next run.
587 */
588void ERR_load_CRYPTO_strings(void);
589
590/* Error codes for the CRYPTO functions. */
591
592/* Function codes. */
593#define CRYPTO_F_CRYPTO_GET_EX_NEW_INDEX 100
594#define CRYPTO_F_CRYPTO_GET_NEW_DYNLOCKID 103
595#define CRYPTO_F_CRYPTO_GET_NEW_LOCKID 101
596#define CRYPTO_F_CRYPTO_SET_EX_DATA 102
597#define CRYPTO_F_DEF_ADD_INDEX 104
598#define CRYPTO_F_DEF_GET_CLASS 105
599#define CRYPTO_F_FIPS_MODE_SET 109
600#define CRYPTO_F_INT_DUP_EX_DATA 106
601#define CRYPTO_F_INT_FREE_EX_DATA 107
602#define CRYPTO_F_INT_NEW_EX_DATA 108
603
604/* Reason codes. */
605#define CRYPTO_R_FIPS_MODE_NOT_SUPPORTED 101
606#define CRYPTO_R_NO_DYNLOCK_CREATE_CALLBACK 100
607
608#ifdef __cplusplus
609}
610#endif
611#endif
diff --git a/src/lib/libcrypto/crypto/Makefile b/src/lib/libcrypto/crypto/Makefile
deleted file mode 100644
index 789f92f5b3..0000000000
--- a/src/lib/libcrypto/crypto/Makefile
+++ /dev/null
@@ -1,573 +0,0 @@
1# $OpenBSD: Makefile,v 1.2 2014/04/13 15:49:47 miod Exp $
2
3LIB= crypto
4
5SSL_SRC= ${.CURDIR}/../../libssl/src
6LCRYPTO_SRC= ${SSL_SRC}/crypto
7
8# arm and sh default to little endian, mips defaults to big endian
9.if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "amd64" || \
10 ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "i386" || \
11 ${MACHINE_ARCH} == "mips64el" || ${MACHINE_ARCH} == "sh" || \
12 ${MACHINE_ARCH} == "vax"
13CFLAGS+= -DL_ENDIAN
14.else
15CFLAGS+= -DB_ENDIAN
16.endif
17
18.include <bsd.own.mk> # for 'NOPIC' definition
19.if !defined(NOPIC)
20CFLAGS+= -DDSO_DLFCN -DHAVE_DLFCN_H
21.endif
22
23.if ${MACHINE_ARCH} == "sparc"
24PICFLAG=-fPIC
25.endif
26
27CFLAGS+= -DTERMIOS -DANSI_SOURCE -DNO_ERR -DNO_WINDOWS_BRAINDEATH
28# Hardware engines
29CFLAGS+= -DOPENSSL_NO_HW_4758_CCA
30CFLAGS+= -DOPENSSL_NO_HW_AEP
31CFLAGS+= -DOPENSSL_NO_HW_ATALLA
32CFLAGS+= -DOPENSSL_NO_CAPIENG
33CFLAGS+= -DOPENSSL_NO_HW_CSWIFT
34CFLAGS+= -DOPENSSL_NO_HW_NCIPHER
35CFLAGS+= -DOPENSSL_NO_HW_NURON
36CFLAGS+= -DOPENSSL_NO_HW_PADLOCK # XXX enable this?
37CFLAGS+= -DOPENSSL_NO_HW_SUREWARE
38CFLAGS+= -DOPENSSL_NO_HW_UBSEC
39
40CFLAGS+= -I${SSL_SRC}
41CFLAGS+= -I${LCRYPTO_SRC}
42CFLAGS+= -I${LCRYPTO_SRC}/modes -I${LCRYPTO_SRC}/asn1 -I${LCRYPTO_SRC}/evp
43
44# crypto/
45SRCS+= cryptlib.c mem.c mem_dbg.c cversion.c ex_data.c cpt_err.c
46SRCS+= ebcdic.c uid.c o_time.c o_str.c o_fips.c o_init.c fips_ers.c
47
48# aes/
49SRCS+= aes_misc.c aes_ecb.c aes_cfb.c aes_ofb.c
50SRCS+= aes_ctr.c aes_ige.c aes_wrap.c
51
52# asn1/
53SRCS+= a_object.c a_bitstr.c a_utctm.c a_gentm.c a_time.c a_int.c a_octet.c
54SRCS+= a_print.c a_type.c a_set.c a_dup.c a_d2i_fp.c a_i2d_fp.c
55SRCS+= a_enum.c a_utf8.c a_sign.c a_digest.c a_verify.c a_mbstr.c a_strex.c
56SRCS+= x_algor.c x_val.c x_pubkey.c x_sig.c x_req.c x_attrib.c x_bignum.c
57SRCS+= x_long.c x_name.c x_x509.c x_x509a.c x_crl.c x_info.c x_spki.c nsseq.c
58SRCS+= x_nx509.c d2i_pu.c d2i_pr.c i2d_pu.c i2d_pr.c
59SRCS+= t_req.c t_x509.c t_x509a.c t_crl.c t_pkey.c t_spki.c t_bitst.c
60SRCS+= tasn_new.c tasn_fre.c tasn_enc.c tasn_dec.c tasn_utl.c tasn_typ.c
61SRCS+= tasn_prn.c ameth_lib.c
62SRCS+= f_int.c f_string.c n_pkey.c
63SRCS+= f_enum.c x_pkey.c a_bool.c x_exten.c bio_asn1.c bio_ndef.c asn_mime.c
64SRCS+= asn1_gen.c asn1_par.c asn1_lib.c asn1_err.c a_bytes.c a_strnid.c
65SRCS+= evp_asn1.c asn_pack.c p5_pbe.c p5_pbev2.c p8_pkey.c asn_moid.c
66
67# bf/
68SRCS+= bf_skey.c bf_ecb.c bf_cfb64.c bf_ofb64.c
69
70# bio/
71SRCS+= bio_lib.c bio_cb.c bio_err.c
72SRCS+= bss_mem.c bss_null.c bss_fd.c
73SRCS+= bss_file.c bss_sock.c bss_conn.c
74SRCS+= bf_null.c bf_buff.c b_print.c b_dump.c
75SRCS+= b_sock.c bss_acpt.c bf_nbio.c bss_log.c bss_bio.c
76SRCS+= bss_dgram.c
77
78# bn/
79SRCS+= bn_add.c bn_div.c bn_exp.c bn_lib.c bn_ctx.c bn_mul.c bn_mod.c
80SRCS+= bn_print.c bn_rand.c bn_shift.c bn_word.c bn_blind.c
81SRCS+= bn_kron.c bn_sqrt.c bn_gcd.c bn_prime.c bn_err.c bn_sqr.c
82SRCS+= bn_recp.c bn_mont.c bn_mpi.c bn_exp2.c bn_gf2m.c bn_nist.c
83SRCS+= bn_depr.c bn_const.c bn_x931p.c
84
85# buffer/
86SRCS+= buffer.c buf_err.c buf_str.c
87
88# camellia/
89#SRCS+= cmll_ecb.c cmll_ofb.c cmll_cfb.c cmll_ctr.c cmll_utl.c
90
91# cast/
92SRCS+= c_skey.c c_ecb.c c_enc.c c_cfb64.c c_ofb64.c
93
94# cmac/
95SRCS+= cmac.c cm_ameth.c cm_pmeth.c
96
97# cms/
98#SRCS+= cms_lib.c cms_asn1.c cms_att.c cms_io.c cms_smime.c cms_err.c
99#SRCS+= cms_sd.c cms_dd.c cms_cd.c cms_env.c cms_enc.c cms_ess.c
100#SRCS+= cms_pwri.c
101
102# comp/
103SRCS+= comp_lib.c comp_err.c c_rle.c c_zlib.c
104
105# conf/
106SRCS+= conf_err.c conf_lib.c conf_api.c conf_def.c conf_mod.c
107SRCS+= conf_mall.c conf_sap.c
108
109# des/
110SRCS+= cbc_cksm.c cbc_enc.c cfb64enc.c cfb_enc.c
111SRCS+= ecb3_enc.c ecb_enc.c enc_read.c enc_writ.c
112SRCS+= fcrypt.c ofb64enc.c ofb_enc.c pcbc_enc.c
113SRCS+= qud_cksm.c rand_key.c rpc_enc.c set_key.c xcbc_enc.c
114SRCS+= str2key.c cfb64ede.c ofb64ede.c ede_cbcm_enc.c des_old.c des_old2.c
115SRCS+= read2pwd.c
116
117# dh/
118SRCS+= dh_asn1.c dh_gen.c dh_key.c dh_lib.c dh_check.c dh_err.c dh_depr.c
119SRCS+= dh_ameth.c dh_pmeth.c dh_prn.c
120
121# dsa/
122SRCS+= dsa_gen.c dsa_key.c dsa_lib.c dsa_asn1.c dsa_vrf.c dsa_sign.c
123SRCS+= dsa_err.c dsa_ossl.c dsa_depr.c dsa_ameth.c dsa_pmeth.c dsa_prn.c
124
125# dso/
126SRCS+= dso_dl.c dso_dlfcn.c dso_err.c dso_lib.c dso_null.c
127SRCS+= dso_openssl.c dso_win32.c dso_vms.c dso_beos.c
128
129# ec/
130SRCS+= ec_lib.c ecp_smpl.c ecp_mont.c ecp_nist.c ec_cvt.c ec_mult.c
131SRCS+= ec_err.c ec_curve.c ec_check.c ec_print.c ec_asn1.c ec_key.c
132SRCS+= ec2_smpl.c ec2_mult.c ec_ameth.c ec_pmeth.c eck_prn.c
133SRCS+= ecp_nistp224.c ecp_nistp256.c ecp_nistp521.c ecp_nistputil.c
134SRCS+= ecp_oct.c ec2_oct.c ec_oct.c
135
136# ecdh/
137SRCS+= ech_lib.c ech_ossl.c ech_key.c ech_err.c
138
139# ecdsa/
140SRCS+= ecs_lib.c ecs_asn1.c ecs_ossl.c ecs_sign.c ecs_vrf.c ecs_err.c
141
142# engine/
143SRCS+= eng_err.c eng_lib.c eng_list.c eng_init.c eng_ctrl.c
144SRCS+= eng_table.c eng_pkey.c eng_fat.c eng_all.c
145SRCS+= tb_rsa.c tb_dsa.c tb_ecdsa.c tb_dh.c tb_ecdh.c tb_rand.c tb_store.c
146SRCS+= tb_cipher.c tb_digest.c tb_pkmeth.c tb_asnmth.c
147SRCS+= eng_openssl.c eng_cnf.c eng_dyn.c hw_cryptodev.c
148SRCS+= eng_rsax.c eng_rdrand.c
149# XXX unnecessary? handled in EVP now...
150# SRCS+= eng_aesni.c # local addition
151
152# err/
153SRCS+= err.c err_all.c err_prn.c
154
155# evp/
156SRCS+= encode.c digest.c evp_enc.c evp_key.c evp_acnf.c
157SRCS+= e_des.c e_bf.c e_idea.c e_des3.c e_camellia.c
158SRCS+= e_rc4.c e_aes.c names.c e_seed.c
159SRCS+= e_xcbc_d.c e_rc2.c e_cast.c e_rc5.c
160SRCS+= m_null.c m_md2.c m_md4.c m_md5.c m_sha.c m_sha1.c m_wp.c
161SRCS+= m_dss.c m_dss1.c m_mdc2.c m_ripemd.c m_ecdsa.c
162SRCS+= p_open.c p_seal.c p_sign.c p_verify.c p_lib.c p_enc.c p_dec.c
163SRCS+= bio_md.c bio_b64.c bio_enc.c evp_err.c e_null.c
164SRCS+= c_all.c c_allc.c c_alld.c evp_lib.c bio_ok.c
165SRCS+= evp_pkey.c evp_pbe.c p5_crpt.c p5_crpt2.c
166SRCS+= e_old.c pmeth_lib.c pmeth_fn.c pmeth_gn.c m_sigver.c evp_fips.c
167SRCS+= e_aes_cbc_hmac_sha1.c e_rc4_hmac_md5.c
168
169# hmac/
170SRCS+= hmac.c hm_ameth.c hm_pmeth.c
171
172# idea/
173SRCS+= i_cbc.c i_cfb64.c i_ofb64.c i_ecb.c i_skey.c
174
175# jpake/
176#SRCS+= jpake.c jpake_err.c
177
178# krb5/
179SRCS+= krb5_asn.c
180
181# lhash/
182SRCS+= lhash.c lh_stats.c
183
184# md2
185##SRCS+= md2_dgst.c md2_one.c
186
187# md4/
188SRCS+= md4_dgst.c md4_one.c
189
190# md5/
191SRCS+= md5_dgst.c md5_one.c
192
193# mdc2/
194SRCS+= mdc2dgst.c mdc2_one.c
195
196# modes/
197SRCS+= cbc128.c ctr128.c cts128.c cfb128.c ofb128.c gcm128.c ccm128.c xts128.c
198
199# objects/
200SRCS+= o_names.c obj_dat.c obj_lib.c obj_err.c obj_xref.c
201
202# ocsp/
203SRCS+= ocsp_asn.c ocsp_ext.c ocsp_ht.c ocsp_lib.c ocsp_cl.c
204SRCS+= ocsp_srv.c ocsp_prn.c ocsp_vfy.c ocsp_err.c
205
206# pem/
207SRCS+= pem_sign.c pem_seal.c pem_info.c pem_lib.c pem_all.c pem_err.c
208SRCS+= pem_x509.c pem_xaux.c pem_oth.c pem_pk8.c pem_pkey.c pvkfmt.c
209
210# pkcs12/
211SRCS+= p12_add.c p12_asn.c p12_attr.c p12_crpt.c p12_crt.c p12_decr.c
212SRCS+= p12_init.c p12_key.c p12_kiss.c p12_mutl.c
213SRCS+= p12_utl.c p12_npas.c pk12err.c p12_p8d.c p12_p8e.c
214
215# pkcs7/
216SRCS+= pk7_asn1.c pk7_lib.c pkcs7err.c pk7_doit.c pk7_smime.c pk7_attr.c
217SRCS+= pk7_mime.c bio_pk7.c
218
219# pqueue/
220SRCS+= pqueue.c
221
222# rand/
223SRCS+= md_rand.c randfile.c rand_lib.c rand_err.c rand_egd.c
224SRCS+= rand_win.c rand_unix.c rand_os2.c rand_nw.c
225
226# rc2/
227SRCS+= rc2_ecb.c rc2_skey.c rc2_cbc.c rc2cfb64.c rc2ofb64.c
228
229# rc4/
230SRCS+= rc4_utl.c
231
232# rc5/
233#SRCS+= rc5_skey.c rc5_ecb.c rc5cfb64.c rc5ofb64.c
234
235# ripemd/
236SRCS+= rmd_dgst.c rmd_one.c
237
238# rsa/
239SRCS+= rsa_eay.c rsa_gen.c rsa_lib.c rsa_sign.c rsa_saos.c rsa_err.c
240SRCS+= rsa_pk1.c rsa_ssl.c rsa_none.c rsa_oaep.c rsa_chk.c rsa_null.c
241SRCS+= rsa_pss.c rsa_x931.c rsa_asn1.c rsa_depr.c rsa_ameth.c rsa_prn.c
242SRCS+= rsa_pmeth.c rsa_crpt.c
243
244# seed/
245#SRCS+= seed.c seed_ecb.c seed_cbc.c seed_cfb.c seed_ofb.c
246
247# sha/
248SRCS+= sha_dgst.c sha1dgst.c sha_one.c sha1_one.c sha256.c sha512.c
249
250# srp/
251#SRCS+= srp_lib.c srp_vfy.c
252
253# stack/
254SRCS+= stack.c
255
256# store/
257#SRCS+= str_err.c str_lib.c str_meth.c str_mem.c
258
259# ts/
260SRCS+= ts_err.c ts_req_utils.c ts_req_print.c ts_rsp_utils.c ts_rsp_print.c
261SRCS+= ts_rsp_sign.c ts_rsp_verify.c ts_verify_ctx.c ts_lib.c ts_conf.c
262SRCS+= ts_asn1.c
263
264# txt_db/
265SRCS+=txt_db.c
266
267# ui/
268SRCS+= ui_err.c ui_lib.c ui_openssl.c ui_util.c ui_compat.c
269
270# whrlpool/
271SRCS+= wp_dgst.c
272
273# x509/
274SRCS+= x509_def.c x509_d2.c x509_r2x.c x509_cmp.c
275SRCS+= x509_obj.c x509_req.c x509spki.c x509_vfy.c
276SRCS+= x509_set.c x509cset.c x509rset.c x509_err.c
277SRCS+= x509name.c x509_v3.c x509_ext.c x509_att.c
278SRCS+= x509type.c x509_lu.c x_all.c x509_txt.c
279SRCS+= x509_trs.c by_file.c by_dir.c x509_vpm.c
280
281# x509v3/
282SRCS+= v3_bcons.c v3_bitst.c v3_conf.c v3_extku.c v3_ia5.c v3_lib.c
283SRCS+= v3_prn.c v3_utl.c v3err.c v3_genn.c v3_alt.c v3_skey.c v3_akey.c v3_pku.c
284SRCS+= v3_int.c v3_enum.c v3_sxnet.c v3_cpols.c v3_crld.c v3_purp.c v3_info.c
285SRCS+= v3_ocsp.c v3_akeya.c v3_pmaps.c v3_pcons.c v3_ncons.c v3_pcia.c v3_pci.c
286SRCS+= pcy_cache.c pcy_node.c pcy_data.c pcy_map.c pcy_tree.c pcy_lib.c
287SRCS+= v3_asid.c v3_addr.c
288
289.PATH: ${.CURDIR}/arch/${MACHINE_CPU} \
290 ${LCRYPTO_SRC} \
291 ${LCRYPTO_SRC}/aes \
292 ${LCRYPTO_SRC}/asn1 \
293 ${LCRYPTO_SRC}/bf \
294 ${LCRYPTO_SRC}/bio \
295 ${LCRYPTO_SRC}/bn \
296 ${LCRYPTO_SRC}/bn/asm \
297 ${LCRYPTO_SRC}/buffer \
298 ${LCRYPTO_SRC}/camellia \
299 ${LCRYPTO_SRC}/cast \
300 ${LCRYPTO_SRC}/cmac \
301 ${LCRYPTO_SRC}/cms \
302 ${LCRYPTO_SRC}/comp \
303 ${LCRYPTO_SRC}/conf \
304 ${LCRYPTO_SRC}/des \
305 ${LCRYPTO_SRC}/dh \
306 ${LCRYPTO_SRC}/dsa \
307 ${LCRYPTO_SRC}/dso \
308 ${LCRYPTO_SRC}/ec \
309 ${LCRYPTO_SRC}/ecdh \
310 ${LCRYPTO_SRC}/ecdsa \
311 ${LCRYPTO_SRC}/engine \
312 ${LCRYPTO_SRC}/err \
313 ${LCRYPTO_SRC}/evp \
314 ${LCRYPTO_SRC}/md2 \
315 ${LCRYPTO_SRC}/hmac \
316 ${LCRYPTO_SRC}/idea \
317 ${LCRYPTO_SRC}/jpake \
318 ${LCRYPTO_SRC}/krb5 \
319 ${LCRYPTO_SRC}/lhash \
320 ${LCRYPTO_SRC}/md4 \
321 ${LCRYPTO_SRC}/md5 \
322 ${LCRYPTO_SRC}/mdc2 \
323 ${LCRYPTO_SRC}/modes \
324 ${LCRYPTO_SRC}/objects \
325 ${LCRYPTO_SRC}/ocsp \
326 ${LCRYPTO_SRC}/pem \
327 ${LCRYPTO_SRC}/perlasm \
328 ${LCRYPTO_SRC}/pkcs12 \
329 ${LCRYPTO_SRC}/pkcs7 \
330 ${LCRYPTO_SRC}/pqueue \
331 ${LCRYPTO_SRC}/rand \
332 ${LCRYPTO_SRC}/rc2 \
333 ${LCRYPTO_SRC}/rc4 \
334 ${LCRYPTO_SRC}/rc5 \
335 ${LCRYPTO_SRC}/ripemd \
336 ${LCRYPTO_SRC}/rsa \
337 ${LCRYPTO_SRC}/seed \
338 ${LCRYPTO_SRC}/sha \
339 ${LCRYPTO_SRC}/stack \
340 ${LCRYPTO_SRC}/store \
341 ${LCRYPTO_SRC}/threads \
342 ${LCRYPTO_SRC}/ts \
343 ${LCRYPTO_SRC}/txt_db \
344 ${LCRYPTO_SRC}/ui \
345 ${LCRYPTO_SRC}/whrlpool \
346 ${LCRYPTO_SRC}/x509 \
347 ${LCRYPTO_SRC}/x509v3
348
349HDRS=\
350 e_os.h \
351 e_os2.h \
352 crypto/aes/aes.h \
353 crypto/asn1/asn1.h \
354 crypto/asn1/asn1_mac.h \
355 crypto/asn1/asn1t.h \
356 crypto/bf/blowfish.h \
357 crypto/bio/bio.h \
358 crypto/bn/bn.h \
359 crypto/buffer/buffer.h \
360 crypto/camellia/camellia.h \
361 crypto/cast/cast.h \
362 crypto/cmac/cmac.h \
363 crypto/cms/cms.h \
364 crypto/comp/comp.h \
365 crypto/conf/conf.h \
366 crypto/conf/conf_api.h \
367 crypto/crypto.h \
368 crypto/des/des.h \
369 crypto/des/des_old.h \
370 crypto/dh/dh.h \
371 crypto/dsa/dsa.h \
372 crypto/dso/dso.h \
373 crypto/ebcdic.h \
374 crypto/ec/ec.h \
375 crypto/ecdh/ecdh.h \
376 crypto/ecdsa/ecdsa.h \
377 crypto/engine/engine.h \
378 crypto/err/err.h \
379 crypto/evp/evp.h \
380 crypto/hmac/hmac.h \
381 crypto/idea/idea.h \
382 crypto/krb5/krb5_asn.h \
383 crypto/lhash/lhash.h \
384 crypto/md2/md2.h \
385 crypto/md4/md4.h \
386 crypto/md5/md5.h \
387 crypto/mdc2/mdc2.h \
388 crypto/modes/modes.h \
389 crypto/objects/objects.h \
390 crypto/ocsp/ocsp.h \
391 crypto/opensslv.h \
392 crypto/ossl_typ.h \
393 crypto/pem/pem.h \
394 crypto/pem/pem2.h \
395 crypto/pkcs12/pkcs12.h \
396 crypto/pkcs7/pkcs7.h \
397 crypto/pqueue/pqueue.h \
398 crypto/rand/rand.h \
399 crypto/rc2/rc2.h \
400 crypto/rc4/rc4.h \
401 crypto/rc5/rc5.h \
402 crypto/ripemd/ripemd.h \
403 crypto/rsa/rsa.h \
404 crypto/seed/seed.h \
405 crypto/sha/sha.h \
406 crypto/srp/srp.h \
407 crypto/stack/safestack.h \
408 crypto/stack/stack.h \
409 crypto/store/store.h \
410 crypto/symhacks.h \
411 crypto/ts/ts.h \
412 crypto/txt_db/txt_db.h \
413 crypto/ui/ui.h \
414 crypto/ui/ui_compat.h \
415 crypto/whrlpool/whrlpool.h \
416 crypto/x509/x509.h \
417 crypto/x509/x509_vfy.h \
418 crypto/x509v3/x509v3.h
419
420HDRS_GEN=\
421 ${.CURDIR}/arch/${MACHINE_CPU}/opensslconf.h \
422 ${.OBJDIR}/obj_mac.h
423
424includes: obj_mac.h
425 @test -d ${DESTDIR}/usr/include/openssl || \
426 mkdir ${DESTDIR}/usr/include/openssl
427 @cd ${SSL_SRC}; \
428 for i in $(HDRS); do \
429 j="cmp -s $$i ${DESTDIR}/usr/include/openssl/`basename $$i` || \
430 ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 $$i\
431 ${DESTDIR}/usr/include/openssl"; \
432 echo $$j; \
433 eval "$$j"; \
434 done; \
435 for i in $(HDRS_GEN); do \
436 j="cmp -s $$i ${DESTDIR}/usr/include/openssl/`basename $$i` || \
437 ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 $$i\
438 ${DESTDIR}/usr/include/openssl"; \
439 echo $$j; \
440 eval "$$j"; \
441 done;
442
443# generated
444CFLAGS+= -I${.OBJDIR}
445
446GENERATED=obj_mac.h obj_dat.h
447CLEANFILES=${GENERATED} obj_mac.num.tmp
448SSL_OBJECTS=${SSL_SRC}/crypto/objects
449
450obj_mac.h: ${SSL_OBJECTS}/objects.h ${SSL_OBJECTS}/obj_mac.num ${SSL_OBJECTS}/objects.txt
451 cat ${SSL_OBJECTS}/obj_mac.num > obj_mac.num.tmp
452 /usr/bin/perl ${SSL_OBJECTS}/objects.pl ${SSL_OBJECTS}/objects.txt obj_mac.num.tmp obj_mac.h
453
454obj_dat.h: obj_mac.h
455 /usr/bin/perl ${SSL_OBJECTS}/obj_dat.pl obj_mac.h obj_dat.h
456
457.if (${MACHINE_ARCH} == "i386")
458SRCS+= wp_block.c
459SRCS+= bf_cbc.c
460CFLAGS+= -DOPENSSL_BN_ASM_PART_WORDS
461CFLAGS+= -DOPENSSL_IA32_SSE2
462CFLAGS+= -DOPENSSL_BN_ASM_MONT
463CFLAGS+= -DOPENSSL_BN_ASM_GF2m
464CFLAGS+= -DSHA1_ASM
465CFLAGS+= -DSHA256_ASM
466CFLAGS+= -DSHA512_ASM
467CFLAGS+= -DMD5_ASM
468CFLAGS+= -DRMD160_ASM
469CFLAGS+= -DAES_ASM
470CFLAGS+= -DVPAES_ASM
471CFLAGS+= -DWHIRLPOOL_ASM
472CFLAGS+= -DGHASH_ASM
473CFLAGS+= -DOPENSSL_CPUID_OBJ
474SSLASM=\
475 aes aes-586 \
476 aes vpaes-x86 \
477 aes aesni-x86 \
478 bf bf-586 \
479 bn bn-586 \
480 bn co-586 \
481 bn x86-mont \
482 bn x86-gf2m \
483 des crypt586 \
484 des des-586 \
485 md5 md5-586 \
486 modes ghash-x86 \
487 rc4 rc4-586 \
488 ripemd rmd-586 \
489 sha sha1-586 \
490 sha sha256-586 \
491 sha sha512-586 \
492 whrlpool wp-mmx
493.for dir f in ${SSLASM}
494SRCS+= ${f}.S
495GENERATED+=${f}.S
496${f}.S: ${LCRYPTO_SRC}/${dir}/asm/${f}.pl ${LCRYPTO_SRC}/perlasm/x86gas.pl
497 /usr/bin/perl -I${LCRYPTO_SRC}/perlasm -I${LCRYPTO_SRC}/${dir}/asm \
498 ${LCRYPTO_SRC}/${dir}/asm/${f}.pl \
499 openbsd-elf ${CFLAGS} 386 ${PICFLAG} > ${.TARGET}
500.endfor
501SRCS+= x86cpuid.S
502GENERATED+=x86cpuid.S
503x86cpuid.S: ${LCRYPTO_SRC}/x86cpuid.pl ${LCRYPTO_SRC}/perlasm/x86gas.pl
504 /usr/bin/perl -I${LCRYPTO_SRC}/perlasm ${LCRYPTO_SRC}/x86cpuid.pl \
505 openbsd-elf ${CFLAGS} 386 ${PICFLAG} > ${.TARGET}
506.elif (${MACHINE_ARCH} == "amd64")
507SRCS+= bf_enc.c des_enc.c fcrypt_b.c
508SRCS+= x86_64-gcc.c
509CFLAGS+= -DOPENSSL_CPUID_OBJ
510CFLAGS+= -DOPENSSL_IA32_SSE2
511CFLAGS+= -DOPENSSL_BN_ASM_MONT
512CFLAGS+= -DOPENSSL_BN_ASM_MONT5
513CFLAGS+= -DOPENSSL_BN_ASM_GF2m
514CFLAGS+= -DSHA1_ASM
515CFLAGS+= -DSHA256_ASM
516CFLAGS+= -DSHA512_ASM
517CFLAGS+= -DMD5_ASM
518CFLAGS+= -DAES_ASM
519CFLAGS+= -DVPAES_ASM
520CFLAGS+= -DBSAES_ASM
521CFLAGS+= -DWHIRLPOOL_ASM
522CFLAGS+= -DGHASH_ASM
523SSLASM=\
524 aes aes-x86_64 \
525 aes aesni-x86_64 \
526 aes aesni-sha1-x86_64 \
527 aes bsaes-x86_64 \
528 aes vpaes-x86_64 \
529 bn x86_64-mont \
530 bn x86_64-mont5 \
531 bn x86_64-gf2m \
532 bn modexp512-x86_64 \
533 md5 md5-x86_64 \
534 modes ghash-x86_64 \
535 rc4 rc4-x86_64 \
536 rc4 rc4-md5-x86_64 \
537 sha sha1-x86_64 \
538 whrlpool wp-x86_64
539.for dir f in ${SSLASM}
540SRCS+= ${f}.S
541GENERATED+=${f}.S
542${f}.S: ${LCRYPTO_SRC}/${dir}/asm/${f}.pl
543 (cd ${LCRYPTO_SRC}/${dir} ; \
544 /usr/bin/perl ./asm/${f}.pl openbsd-elf) > ${.TARGET}
545.endfor
546SRCS+= x86_64cpuid.S sha256-x86_64.S sha512-x86_64.S
547GENERATED+=x86_64cpuid.S sha256-x86_64.S sha512-x86_64.S
548x86_64cpuid.S: ${LCRYPTO_SRC}/x86_64cpuid.pl
549 (cd ${LCRYPTO_SRC}/${dir} ; \
550 /usr/bin/perl ./x86_64cpuid.pl) > ${.TARGET}
551sha256-x86_64.S: ${LCRYPTO_SRC}/sha/asm/sha512-x86_64.pl
552 cd ${LCRYPTO_SRC}/sha/asm ; \
553 /usr/bin/perl ./sha512-x86_64.pl ${.OBJDIR}/${.TARGET}
554sha512-x86_64.S: ${LCRYPTO_SRC}/sha/asm/sha512-x86_64.pl
555 cd ${LCRYPTO_SRC}/sha/asm ; \
556 /usr/bin/perl ./sha512-x86_64.pl ${.OBJDIR}/${.TARGET}
557.else
558# XXX lots more asm we can turn on for other platforms. Shouldn't require
559# major cranks.
560CFLAGS+=-DOPENSSL_NO_ASM
561SRCS+= mem_clr.c
562SRCS+= aes_core.c aes_cbc.c
563SRCS+= bf_enc.c
564SRCS+= bn_asm.c
565SRCS+= des_enc.c fcrypt_b.c
566SRCS+= rc4_enc.c rc4_skey.c
567#SRCS+= rc5_enc.c
568SRCS+= wp_block.c
569.endif
570
571all beforedepend: ${GENERATED}
572
573.include <bsd.lib.mk>
diff --git a/src/lib/libcrypto/crypto/arch/alpha/opensslconf.h b/src/lib/libcrypto/crypto/arch/alpha/opensslconf.h
deleted file mode 100644
index 30f6acfbb1..0000000000
--- a/src/lib/libcrypto/crypto/arch/alpha/opensslconf.h
+++ /dev/null
@@ -1,271 +0,0 @@
1/* opensslconf.h */
2/* WARNING: Generated automatically from opensslconf.h.in by Configure. */
3
4/* OpenSSL was configured with the following options: */
5#ifndef OPENSSL_DOING_MAKEDEPEND
6
7
8#ifndef OPENSSL_NO_CAMELLIA
9# define OPENSSL_NO_CAMELLIA
10#endif
11#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
12# define OPENSSL_NO_EC_NISTP_64_GCC_128
13#endif
14#ifndef OPENSSL_NO_CMS
15# define OPENSSL_NO_CMS
16#endif
17#ifndef OPENSSL_NO_GMP
18# define OPENSSL_NO_GMP
19#endif
20#ifndef OPENSSL_NO_GOST
21# define OPENSSL_NO_GOST
22#endif
23#ifndef OPENSSL_NO_JPAKE
24# define OPENSSL_NO_JPAKE
25#endif
26#ifndef OPENSSL_NO_KRB5
27# define OPENSSL_NO_KRB5
28#endif
29#ifndef OPENSSL_NO_MD2
30# define OPENSSL_NO_MD2
31#endif
32#ifndef OPENSSL_NO_RC5
33# define OPENSSL_NO_RC5
34#endif
35#ifndef OPENSSL_NO_RFC3779
36# define OPENSSL_NO_RFC3779
37#endif
38#ifndef OPENSSL_NO_SCTP
39# define OPENSSL_NO_SCTP
40#endif
41#ifndef OPENSSL_NO_SEED
42# define OPENSSL_NO_SEED
43#endif
44#ifndef OPENSSL_NO_SRP
45# define OPENSSL_NO_SRP
46#endif
47#ifndef OPENSSL_NO_SSL2
48# define OPENSSL_NO_SSL2
49#endif
50#ifndef OPENSSL_NO_STORE
51# define OPENSSL_NO_STORE
52#endif
53
54#endif /* OPENSSL_DOING_MAKEDEPEND */
55
56#ifndef OPENSSL_THREADS
57# define OPENSSL_THREADS
58#endif
59#ifndef OPENSSL_NO_DYNAMIC_ENGINE
60# define OPENSSL_NO_DYNAMIC_ENGINE
61#endif
62
63/* The OPENSSL_NO_* macros are also defined as NO_* if the application
64 asks for it. This is a transient feature that is provided for those
65 who haven't had the time to do the appropriate changes in their
66 applications. */
67#ifdef OPENSSL_ALGORITHM_DEFINES
68# if defined(OPENSSL_NO_CAMELLIA) && !defined(NO_CAMELLIA)
69# define NO_CAMELLIA
70# endif
71# if defined(OPENSSL_NO_EC_NISTP_64_GCC_128) && !defined(NO_EC_NISTP_64_GCC_128)
72# define NO_EC_NISTP_64_GCC_128
73# endif
74# if defined(OPENSSL_NO_CMS) && !defined(NO_CMS)
75# define NO_CMS
76# endif
77# if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
78# define NO_GMP
79# endif
80# if defined(OPENSSL_NO_GOST) && !defined(NO_GOST)
81# define NO_GOST
82# endif
83# if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
84# define NO_JPAKE
85# endif
86# if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
87# define NO_KRB5
88# endif
89# if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)
90# define NO_MD2
91# endif
92# if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
93# define NO_RC5
94# endif
95# if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
96# define NO_RFC3779
97# endif
98# if defined(OPENSSL_NO_SCTP) && !defined(NO_SCTP)
99# define NO_SCTP
100# endif
101# if defined(OPENSSL_NO_SEED) && !defined(NO_SEED)
102# define NO_SEED
103# endif
104# if defined(OPENSSL_NO_SRP) && !defined(NO_SRP)
105# define NO_SRP
106# endif
107# if defined(OPENSSL_NO_SSL2) && !defined(NO_SSL2)
108# define NO_SSL2
109# endif
110# if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
111# define NO_STORE
112# endif
113#endif
114
115/* crypto/opensslconf.h.in */
116
117/* Generate 80386 code? */
118#undef I386_ONLY
119
120#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
121#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
122#define ENGINESDIR "/usr/lib/engines"
123#define OPENSSLDIR "/etc/ssl"
124#endif
125#endif
126
127#undef OPENSSL_UNISTD
128#define OPENSSL_UNISTD <unistd.h>
129
130#undef OPENSSL_EXPORT_VAR_AS_FUNCTION
131
132#if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
133#define IDEA_INT unsigned int
134#endif
135
136#if defined(HEADER_MD2_H) && !defined(MD2_INT)
137#define MD2_INT unsigned int
138#endif
139
140#if defined(HEADER_RC2_H) && !defined(RC2_INT)
141/* I need to put in a mod for the alpha - eay */
142#define RC2_INT unsigned int
143#endif
144
145#if defined(HEADER_RC4_H)
146#if !defined(RC4_INT)
147/* using int types make the structure larger but make the code faster
148 * on most boxes I have tested - up to %20 faster. */
149/*
150 * I don't know what does "most" mean, but declaring "int" is a must on:
151 * - Intel P6 because partial register stalls are very expensive;
152 * - elder Alpha because it lacks byte load/store instructions;
153 */
154#define RC4_INT unsigned int
155#endif
156#if !defined(RC4_CHUNK)
157/*
158 * This enables code handling data aligned at natural CPU word
159 * boundary. See crypto/rc4/rc4_enc.c for further details.
160 */
161#define RC4_CHUNK unsigned long
162#endif
163#endif
164
165#if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
166/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
167 * %20 speed up (longs are 8 bytes, int's are 4). */
168#ifndef DES_LONG
169#define DES_LONG unsigned int
170#endif
171#endif
172
173#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
174#define CONFIG_HEADER_BN_H
175#undef BN_LLONG
176
177/* Should we define BN_DIV2W here? */
178
179/* Only one for the following should be defined */
180/* The prime number generation stuff may not work when
181 * EIGHT_BIT but I don't care since I've only used this mode
182 * for debuging the bignum libraries */
183#define SIXTY_FOUR_BIT_LONG
184#undef SIXTY_FOUR_BIT
185#undef THIRTY_TWO_BIT
186#endif
187
188#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
189#define CONFIG_HEADER_RC4_LOCL_H
190/* if this is defined data[i] is used instead of *data, this is a %20
191 * speedup on x86 */
192#undef RC4_INDEX
193#endif
194
195#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
196#define CONFIG_HEADER_BF_LOCL_H
197#define BF_PTR
198#endif /* HEADER_BF_LOCL_H */
199
200#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
201#define CONFIG_HEADER_DES_LOCL_H
202#ifndef DES_DEFAULT_OPTIONS
203/* the following is tweaked from a config script, that is why it is a
204 * protected undef/define */
205#ifndef DES_PTR
206#define DES_PTR
207#endif
208
209/* This helps C compiler generate the correct code for multiple functional
210 * units. It reduces register dependancies at the expense of 2 more
211 * registers */
212#ifndef DES_RISC1
213#undef DES_RISC1
214#endif
215
216#ifndef DES_RISC2
217#define DES_RISC2
218#endif
219
220#if defined(DES_RISC1) && defined(DES_RISC2)
221YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
222#endif
223
224/* Unroll the inner loop, this sometimes helps, sometimes hinders.
225 * Very mucy CPU dependant */
226#ifndef DES_UNROLL
227#undef DES_UNROLL
228#endif
229
230/* These default values were supplied by
231 * Peter Gutman <pgut001@cs.auckland.ac.nz>
232 * They are only used if nothing else has been defined */
233#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
234/* Special defines which change the way the code is built depending on the
235 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
236 even newer MIPS CPU's, but at the moment one size fits all for
237 optimization options. Older Sparc's work better with only UNROLL, but
238 there's no way to tell at compile time what it is you're running on */
239
240#if defined( sun ) /* Newer Sparc's */
241# define DES_PTR
242# define DES_RISC1
243# define DES_UNROLL
244#elif defined( __ultrix ) /* Older MIPS */
245# define DES_PTR
246# define DES_RISC2
247# define DES_UNROLL
248#elif defined( __osf1__ ) /* Alpha */
249# define DES_PTR
250# define DES_RISC2
251#elif defined ( _AIX ) /* RS6000 */
252 /* Unknown */
253#elif defined( __hpux ) /* HP-PA */
254 /* Unknown */
255#elif defined( __aux ) /* 68K */
256 /* Unknown */
257#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
258# define DES_UNROLL
259#elif defined( __sgi ) /* Newer MIPS */
260# define DES_PTR
261# define DES_RISC2
262# define DES_UNROLL
263#elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
264# define DES_PTR
265# define DES_RISC1
266# define DES_UNROLL
267#endif /* Systems-specific speed defines */
268#endif
269
270#endif /* DES_DEFAULT_OPTIONS */
271#endif /* HEADER_DES_LOCL_H */
diff --git a/src/lib/libcrypto/crypto/arch/amd64/opensslconf.h b/src/lib/libcrypto/crypto/arch/amd64/opensslconf.h
deleted file mode 100644
index 4d68fa2cc6..0000000000
--- a/src/lib/libcrypto/crypto/arch/amd64/opensslconf.h
+++ /dev/null
@@ -1,265 +0,0 @@
1/* opensslconf.h */
2/* WARNING: Generated automatically from opensslconf.h.in by Configure. */
3
4/* OpenSSL was configured with the following options: */
5#ifndef OPENSSL_DOING_MAKEDEPEND
6
7
8#ifndef OPENSSL_NO_CAMELLIA
9# define OPENSSL_NO_CAMELLIA
10#endif
11#ifndef OPENSSL_NO_CMS
12# define OPENSSL_NO_CMS
13#endif
14#ifndef OPENSSL_NO_GMP
15# define OPENSSL_NO_GMP
16#endif
17#ifndef OPENSSL_NO_GOST
18# define OPENSSL_NO_GOST
19#endif
20#ifndef OPENSSL_NO_JPAKE
21# define OPENSSL_NO_JPAKE
22#endif
23#ifndef OPENSSL_NO_KRB5
24# define OPENSSL_NO_KRB5
25#endif
26#ifndef OPENSSL_NO_MD2
27# define OPENSSL_NO_MD2
28#endif
29#ifndef OPENSSL_NO_RC5
30# define OPENSSL_NO_RC5
31#endif
32#ifndef OPENSSL_NO_RFC3779
33# define OPENSSL_NO_RFC3779
34#endif
35#ifndef OPENSSL_NO_SCTP
36# define OPENSSL_NO_SCTP
37#endif
38#ifndef OPENSSL_NO_SEED
39# define OPENSSL_NO_SEED
40#endif
41#ifndef OPENSSL_NO_SRP
42# define OPENSSL_NO_SRP
43#endif
44#ifndef OPENSSL_NO_SSL2
45# define OPENSSL_NO_SSL2
46#endif
47#ifndef OPENSSL_NO_STORE
48# define OPENSSL_NO_STORE
49#endif
50
51#endif /* OPENSSL_DOING_MAKEDEPEND */
52
53#ifndef OPENSSL_THREADS
54# define OPENSSL_THREADS
55#endif
56#ifndef OPENSSL_NO_DYNAMIC_ENGINE
57# define OPENSSL_NO_DYNAMIC_ENGINE
58#endif
59
60/* The OPENSSL_NO_* macros are also defined as NO_* if the application
61 asks for it. This is a transient feature that is provided for those
62 who haven't had the time to do the appropriate changes in their
63 applications. */
64#ifdef OPENSSL_ALGORITHM_DEFINES
65# if defined(OPENSSL_NO_CAMELLIA) && !defined(NO_CAMELLIA)
66# define NO_CAMELLIA
67# endif
68# if defined(OPENSSL_NO_EC_NISTP_64_GCC_128) && !defined(NO_EC_NISTP_64_GCC_128)
69# define NO_EC_NISTP_64_GCC_128
70# endif
71# if defined(OPENSSL_NO_CMS) && !defined(NO_CMS)
72# define NO_CMS
73# endif
74# if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
75# define NO_GMP
76# endif
77# if defined(OPENSSL_NO_GOST) && !defined(NO_GOST)
78# define NO_GOST
79# endif
80# if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
81# define NO_JPAKE
82# endif
83# if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
84# define NO_KRB5
85# endif
86# if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)
87# define NO_MD2
88# endif
89# if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
90# define NO_RC5
91# endif
92# if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
93# define NO_RFC3779
94# endif
95# if defined(OPENSSL_NO_SCTP) && !defined(NO_SCTP)
96# define NO_SCTP
97# endif
98# if defined(OPENSSL_NO_SEED) && !defined(NO_SEED)
99# define NO_SEED
100# endif
101# if defined(OPENSSL_NO_SRP) && !defined(NO_SRP)
102# define NO_SRP
103# endif
104# if defined(OPENSSL_NO_SSL2) && !defined(NO_SSL2)
105# define NO_SSL2
106# endif
107# if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
108# define NO_STORE
109# endif
110#endif
111
112/* crypto/opensslconf.h.in */
113
114/* Generate 80386 code? */
115#undef I386_ONLY
116
117#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
118#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
119#define ENGINESDIR "/usr/lib/engines"
120#define OPENSSLDIR "/etc/ssl"
121#endif
122#endif
123
124#undef OPENSSL_UNISTD
125#define OPENSSL_UNISTD <unistd.h>
126
127#undef OPENSSL_EXPORT_VAR_AS_FUNCTION
128
129#if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
130#define IDEA_INT unsigned int
131#endif
132
133#if defined(HEADER_MD2_H) && !defined(MD2_INT)
134#define MD2_INT unsigned int
135#endif
136
137#if defined(HEADER_RC2_H) && !defined(RC2_INT)
138/* I need to put in a mod for the alpha - eay */
139#define RC2_INT unsigned int
140#endif
141
142#if defined(HEADER_RC4_H)
143#if !defined(RC4_INT)
144/* using int types make the structure larger but make the code faster
145 * on most boxes I have tested - up to %20 faster. */
146/*
147 * I don't know what does "most" mean, but declaring "int" is a must on:
148 * - Intel P6 because partial register stalls are very expensive;
149 * - elder Alpha because it lacks byte load/store instructions;
150 */
151#define RC4_INT unsigned int
152#endif
153#if !defined(RC4_CHUNK)
154/*
155 * This enables code handling data aligned at natural CPU word
156 * boundary. See crypto/rc4/rc4_enc.c for further details.
157 */
158#define RC4_CHUNK unsigned long
159#endif
160#endif
161
162#if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
163/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
164 * %20 speed up (longs are 8 bytes, int's are 4). */
165#ifndef DES_LONG
166#define DES_LONG unsigned int
167#endif
168#endif
169
170#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
171#define CONFIG_HEADER_BN_H
172#undef BN_LLONG
173
174/* Should we define BN_DIV2W here? */
175
176/* Only one for the following should be defined */
177#define SIXTY_FOUR_BIT_LONG
178#undef SIXTY_FOUR_BIT
179#undef THIRTY_TWO_BIT
180#endif
181
182#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
183#define CONFIG_HEADER_RC4_LOCL_H
184/* if this is defined data[i] is used instead of *data, this is a %20
185 * speedup on x86 */
186#undef RC4_INDEX
187#endif
188
189#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
190#define CONFIG_HEADER_BF_LOCL_H
191#undef BF_PTR
192#endif /* HEADER_BF_LOCL_H */
193
194#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
195#define CONFIG_HEADER_DES_LOCL_H
196#ifndef DES_DEFAULT_OPTIONS
197/* the following is tweaked from a config script, that is why it is a
198 * protected undef/define */
199#ifndef DES_PTR
200#undef DES_PTR
201#endif
202
203/* This helps C compiler generate the correct code for multiple functional
204 * units. It reduces register dependancies at the expense of 2 more
205 * registers */
206#ifndef DES_RISC1
207#undef DES_RISC1
208#endif
209
210#ifndef DES_RISC2
211#undef DES_RISC2
212#endif
213
214#if defined(DES_RISC1) && defined(DES_RISC2)
215YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
216#endif
217
218/* Unroll the inner loop, this sometimes helps, sometimes hinders.
219 * Very mucy CPU dependant */
220#ifndef DES_UNROLL
221#define DES_UNROLL
222#endif
223
224/* These default values were supplied by
225 * Peter Gutman <pgut001@cs.auckland.ac.nz>
226 * They are only used if nothing else has been defined */
227#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
228/* Special defines which change the way the code is built depending on the
229 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
230 even newer MIPS CPU's, but at the moment one size fits all for
231 optimization options. Older Sparc's work better with only UNROLL, but
232 there's no way to tell at compile time what it is you're running on */
233
234#if defined( sun ) /* Newer Sparc's */
235# define DES_PTR
236# define DES_RISC1
237# define DES_UNROLL
238#elif defined( __ultrix ) /* Older MIPS */
239# define DES_PTR
240# define DES_RISC2
241# define DES_UNROLL
242#elif defined( __osf1__ ) /* Alpha */
243# define DES_PTR
244# define DES_RISC2
245#elif defined ( _AIX ) /* RS6000 */
246 /* Unknown */
247#elif defined( __hpux ) /* HP-PA */
248 /* Unknown */
249#elif defined( __aux ) /* 68K */
250 /* Unknown */
251#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
252# define DES_UNROLL
253#elif defined( __sgi ) /* Newer MIPS */
254# define DES_PTR
255# define DES_RISC2
256# define DES_UNROLL
257#elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
258# define DES_PTR
259# define DES_RISC1
260# define DES_UNROLL
261#endif /* Systems-specific speed defines */
262#endif
263
264#endif /* DES_DEFAULT_OPTIONS */
265#endif /* HEADER_DES_LOCL_H */
diff --git a/src/lib/libcrypto/crypto/arch/arm/opensslconf.h b/src/lib/libcrypto/crypto/arch/arm/opensslconf.h
deleted file mode 100644
index fc5ea38470..0000000000
--- a/src/lib/libcrypto/crypto/arch/arm/opensslconf.h
+++ /dev/null
@@ -1,273 +0,0 @@
1/* opensslconf.h */
2/* WARNING: Generated automatically from opensslconf.h.in by Configure. */
3
4/* OpenSSL was configured with the following options: */
5#ifndef OPENSSL_DOING_MAKEDEPEND
6
7
8#ifndef OPENSSL_NO_CAMELLIA
9# define OPENSSL_NO_CAMELLIA
10#endif
11#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
12# define OPENSSL_NO_EC_NISTP_64_GCC_128
13#endif
14#ifndef OPENSSL_NO_CMS
15# define OPENSSL_NO_CMS
16#endif
17#ifndef OPENSSL_NO_GMP
18# define OPENSSL_NO_GMP
19#endif
20#ifndef OPENSSL_NO_GOST
21# define OPENSSL_NO_GOST
22#endif
23#ifndef OPENSSL_NO_JPAKE
24# define OPENSSL_NO_JPAKE
25#endif
26#ifndef OPENSSL_NO_KRB5
27# define OPENSSL_NO_KRB5
28#endif
29#ifndef OPENSSL_NO_MD2
30# define OPENSSL_NO_MD2
31#endif
32#ifndef OPENSSL_NO_RC5
33# define OPENSSL_NO_RC5
34#endif
35#ifndef OPENSSL_NO_RFC3779
36# define OPENSSL_NO_RFC3779
37#endif
38#ifndef OPENSSL_NO_SCTP
39# define OPENSSL_NO_SCTP
40#endif
41#ifndef OPENSSL_NO_SEED
42# define OPENSSL_NO_SEED
43#endif
44#ifndef OPENSSL_NO_SRP
45# define OPENSSL_NO_SRP
46#endif
47#ifndef OPENSSL_NO_SSL2
48# define OPENSSL_NO_SSL2
49#endif
50#ifndef OPENSSL_NO_STORE
51# define OPENSSL_NO_STORE
52#endif
53
54#endif /* OPENSSL_DOING_MAKEDEPEND */
55
56#ifndef OPENSSL_THREADS
57# define OPENSSL_THREADS
58#endif
59#ifndef OPENSSL_NO_DYNAMIC_ENGINE
60# define OPENSSL_NO_DYNAMIC_ENGINE
61#endif
62
63/* The OPENSSL_NO_* macros are also defined as NO_* if the application
64 asks for it. This is a transient feature that is provided for those
65 who haven't had the time to do the appropriate changes in their
66 applications. */
67#ifdef OPENSSL_ALGORITHM_DEFINES
68# if defined(OPENSSL_NO_CAMELLIA) && !defined(NO_CAMELLIA)
69# define NO_CAMELLIA
70# endif
71# if defined(OPENSSL_NO_EC_NISTP_64_GCC_128) && !defined(NO_EC_NISTP_64_GCC_128)
72# define NO_EC_NISTP_64_GCC_128
73# endif
74# if defined(OPENSSL_NO_CMS) && !defined(NO_CMS)
75# define NO_CMS
76# endif
77# if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
78# define NO_GMP
79# endif
80# if defined(OPENSSL_NO_GOST) && !defined(NO_GOST)
81# define NO_GOST
82# endif
83# if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
84# define NO_JPAKE
85# endif
86# if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
87# define NO_KRB5
88# endif
89# if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)
90# define NO_MD2
91# endif
92# if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
93# define NO_RC5
94# endif
95# if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
96# define NO_RFC3779
97# endif
98# if defined(OPENSSL_NO_SCTP) && !defined(NO_SCTP)
99# define NO_SCTP
100# endif
101# if defined(OPENSSL_NO_SEED) && !defined(NO_SEED)
102# define NO_SEED
103# endif
104# if defined(OPENSSL_NO_SRP) && !defined(NO_SRP)
105# define NO_SRP
106# endif
107# if defined(OPENSSL_NO_SSL2) && !defined(NO_SSL2)
108# define NO_SSL2
109# endif
110# if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
111# define NO_STORE
112# endif
113#endif
114
115/* crypto/opensslconf.h.in */
116
117/* Generate 80386 code? */
118#undef I386_ONLY
119
120#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
121#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
122#define ENGINESDIR "/usr/lib/engines"
123#define OPENSSLDIR "/etc/ssl"
124#endif
125#endif
126
127#undef OPENSSL_UNISTD
128#define OPENSSL_UNISTD <unistd.h>
129
130#undef OPENSSL_EXPORT_VAR_AS_FUNCTION
131
132#if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
133#define IDEA_INT unsigned int
134#endif
135
136#if defined(HEADER_MD2_H) && !defined(MD2_INT)
137#define MD2_INT unsigned int
138#endif
139
140#if defined(HEADER_RC2_H) && !defined(RC2_INT)
141/* I need to put in a mod for the alpha - eay */
142#define RC2_INT unsigned int
143#endif
144
145#if defined(HEADER_RC4_H)
146#if !defined(RC4_INT)
147/* using int types make the structure larger but make the code faster
148 * on most boxes I have tested - up to %20 faster. */
149/*
150 * I don't know what does "most" mean, but declaring "int" is a must on:
151 * - Intel P6 because partial register stalls are very expensive;
152 * - elder Alpha because it lacks byte load/store instructions;
153 */
154#define RC4_INT unsigned int
155#endif
156#if !defined(RC4_CHUNK)
157/*
158 * This enables code handling data aligned at natural CPU word
159 * boundary. See crypto/rc4/rc4_enc.c for further details.
160 */
161#undef RC4_CHUNK
162#endif
163#endif
164
165#if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
166/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
167 * %20 speed up (longs are 8 bytes, int's are 4). */
168#ifndef DES_LONG
169#define DES_LONG unsigned int
170#endif
171#endif
172
173#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
174#define CONFIG_HEADER_BN_H
175#define BN_LLONG
176
177/* Should we define BN_DIV2W here? */
178
179/* Only one for the following should be defined */
180/* The prime number generation stuff may not work when
181 * EIGHT_BIT but I don't care since I've only used this mode
182 * for debuging the bignum libraries */
183#undef SIXTY_FOUR_BIT_LONG
184#undef SIXTY_FOUR_BIT
185#define THIRTY_TWO_BIT
186#undef SIXTEEN_BIT
187#undef EIGHT_BIT
188#endif
189
190#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
191#define CONFIG_HEADER_RC4_LOCL_H
192/* if this is defined data[i] is used instead of *data, this is a %20
193 * speedup on x86 */
194#define RC4_INDEX
195#endif
196
197#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
198#define CONFIG_HEADER_BF_LOCL_H
199#undef BF_PTR
200#endif /* HEADER_BF_LOCL_H */
201
202#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
203#define CONFIG_HEADER_DES_LOCL_H
204#ifndef DES_DEFAULT_OPTIONS
205/* the following is tweaked from a config script, that is why it is a
206 * protected undef/define */
207#ifndef DES_PTR
208#undef DES_PTR
209#endif
210
211/* This helps C compiler generate the correct code for multiple functional
212 * units. It reduces register dependancies at the expense of 2 more
213 * registers */
214#ifndef DES_RISC1
215#undef DES_RISC1
216#endif
217
218#ifndef DES_RISC2
219#undef DES_RISC2
220#endif
221
222#if defined(DES_RISC1) && defined(DES_RISC2)
223YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
224#endif
225
226/* Unroll the inner loop, this sometimes helps, sometimes hinders.
227 * Very mucy CPU dependant */
228#ifndef DES_UNROLL
229#define DES_UNROLL
230#endif
231
232/* These default values were supplied by
233 * Peter Gutman <pgut001@cs.auckland.ac.nz>
234 * They are only used if nothing else has been defined */
235#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
236/* Special defines which change the way the code is built depending on the
237 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
238 even newer MIPS CPU's, but at the moment one size fits all for
239 optimization options. Older Sparc's work better with only UNROLL, but
240 there's no way to tell at compile time what it is you're running on */
241
242#if defined( sun ) /* Newer Sparc's */
243# define DES_PTR
244# define DES_RISC1
245# define DES_UNROLL
246#elif defined( __ultrix ) /* Older MIPS */
247# define DES_PTR
248# define DES_RISC2
249# define DES_UNROLL
250#elif defined( __osf1__ ) /* Alpha */
251# define DES_PTR
252# define DES_RISC2
253#elif defined ( _AIX ) /* RS6000 */
254 /* Unknown */
255#elif defined( __hpux ) /* HP-PA */
256 /* Unknown */
257#elif defined( __aux ) /* 68K */
258 /* Unknown */
259#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
260# define DES_UNROLL
261#elif defined( __sgi ) /* Newer MIPS */
262# define DES_PTR
263# define DES_RISC2
264# define DES_UNROLL
265#elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
266# define DES_PTR
267# define DES_RISC1
268# define DES_UNROLL
269#endif /* Systems-specific speed defines */
270#endif
271
272#endif /* DES_DEFAULT_OPTIONS */
273#endif /* HEADER_DES_LOCL_H */
diff --git a/src/lib/libcrypto/crypto/arch/hppa/opensslconf.h b/src/lib/libcrypto/crypto/arch/hppa/opensslconf.h
deleted file mode 100644
index fc5ea38470..0000000000
--- a/src/lib/libcrypto/crypto/arch/hppa/opensslconf.h
+++ /dev/null
@@ -1,273 +0,0 @@
1/* opensslconf.h */
2/* WARNING: Generated automatically from opensslconf.h.in by Configure. */
3
4/* OpenSSL was configured with the following options: */
5#ifndef OPENSSL_DOING_MAKEDEPEND
6
7
8#ifndef OPENSSL_NO_CAMELLIA
9# define OPENSSL_NO_CAMELLIA
10#endif
11#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
12# define OPENSSL_NO_EC_NISTP_64_GCC_128
13#endif
14#ifndef OPENSSL_NO_CMS
15# define OPENSSL_NO_CMS
16#endif
17#ifndef OPENSSL_NO_GMP
18# define OPENSSL_NO_GMP
19#endif
20#ifndef OPENSSL_NO_GOST
21# define OPENSSL_NO_GOST
22#endif
23#ifndef OPENSSL_NO_JPAKE
24# define OPENSSL_NO_JPAKE
25#endif
26#ifndef OPENSSL_NO_KRB5
27# define OPENSSL_NO_KRB5
28#endif
29#ifndef OPENSSL_NO_MD2
30# define OPENSSL_NO_MD2
31#endif
32#ifndef OPENSSL_NO_RC5
33# define OPENSSL_NO_RC5
34#endif
35#ifndef OPENSSL_NO_RFC3779
36# define OPENSSL_NO_RFC3779
37#endif
38#ifndef OPENSSL_NO_SCTP
39# define OPENSSL_NO_SCTP
40#endif
41#ifndef OPENSSL_NO_SEED
42# define OPENSSL_NO_SEED
43#endif
44#ifndef OPENSSL_NO_SRP
45# define OPENSSL_NO_SRP
46#endif
47#ifndef OPENSSL_NO_SSL2
48# define OPENSSL_NO_SSL2
49#endif
50#ifndef OPENSSL_NO_STORE
51# define OPENSSL_NO_STORE
52#endif
53
54#endif /* OPENSSL_DOING_MAKEDEPEND */
55
56#ifndef OPENSSL_THREADS
57# define OPENSSL_THREADS
58#endif
59#ifndef OPENSSL_NO_DYNAMIC_ENGINE
60# define OPENSSL_NO_DYNAMIC_ENGINE
61#endif
62
63/* The OPENSSL_NO_* macros are also defined as NO_* if the application
64 asks for it. This is a transient feature that is provided for those
65 who haven't had the time to do the appropriate changes in their
66 applications. */
67#ifdef OPENSSL_ALGORITHM_DEFINES
68# if defined(OPENSSL_NO_CAMELLIA) && !defined(NO_CAMELLIA)
69# define NO_CAMELLIA
70# endif
71# if defined(OPENSSL_NO_EC_NISTP_64_GCC_128) && !defined(NO_EC_NISTP_64_GCC_128)
72# define NO_EC_NISTP_64_GCC_128
73# endif
74# if defined(OPENSSL_NO_CMS) && !defined(NO_CMS)
75# define NO_CMS
76# endif
77# if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
78# define NO_GMP
79# endif
80# if defined(OPENSSL_NO_GOST) && !defined(NO_GOST)
81# define NO_GOST
82# endif
83# if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
84# define NO_JPAKE
85# endif
86# if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
87# define NO_KRB5
88# endif
89# if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)
90# define NO_MD2
91# endif
92# if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
93# define NO_RC5
94# endif
95# if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
96# define NO_RFC3779
97# endif
98# if defined(OPENSSL_NO_SCTP) && !defined(NO_SCTP)
99# define NO_SCTP
100# endif
101# if defined(OPENSSL_NO_SEED) && !defined(NO_SEED)
102# define NO_SEED
103# endif
104# if defined(OPENSSL_NO_SRP) && !defined(NO_SRP)
105# define NO_SRP
106# endif
107# if defined(OPENSSL_NO_SSL2) && !defined(NO_SSL2)
108# define NO_SSL2
109# endif
110# if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
111# define NO_STORE
112# endif
113#endif
114
115/* crypto/opensslconf.h.in */
116
117/* Generate 80386 code? */
118#undef I386_ONLY
119
120#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
121#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
122#define ENGINESDIR "/usr/lib/engines"
123#define OPENSSLDIR "/etc/ssl"
124#endif
125#endif
126
127#undef OPENSSL_UNISTD
128#define OPENSSL_UNISTD <unistd.h>
129
130#undef OPENSSL_EXPORT_VAR_AS_FUNCTION
131
132#if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
133#define IDEA_INT unsigned int
134#endif
135
136#if defined(HEADER_MD2_H) && !defined(MD2_INT)
137#define MD2_INT unsigned int
138#endif
139
140#if defined(HEADER_RC2_H) && !defined(RC2_INT)
141/* I need to put in a mod for the alpha - eay */
142#define RC2_INT unsigned int
143#endif
144
145#if defined(HEADER_RC4_H)
146#if !defined(RC4_INT)
147/* using int types make the structure larger but make the code faster
148 * on most boxes I have tested - up to %20 faster. */
149/*
150 * I don't know what does "most" mean, but declaring "int" is a must on:
151 * - Intel P6 because partial register stalls are very expensive;
152 * - elder Alpha because it lacks byte load/store instructions;
153 */
154#define RC4_INT unsigned int
155#endif
156#if !defined(RC4_CHUNK)
157/*
158 * This enables code handling data aligned at natural CPU word
159 * boundary. See crypto/rc4/rc4_enc.c for further details.
160 */
161#undef RC4_CHUNK
162#endif
163#endif
164
165#if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
166/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
167 * %20 speed up (longs are 8 bytes, int's are 4). */
168#ifndef DES_LONG
169#define DES_LONG unsigned int
170#endif
171#endif
172
173#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
174#define CONFIG_HEADER_BN_H
175#define BN_LLONG
176
177/* Should we define BN_DIV2W here? */
178
179/* Only one for the following should be defined */
180/* The prime number generation stuff may not work when
181 * EIGHT_BIT but I don't care since I've only used this mode
182 * for debuging the bignum libraries */
183#undef SIXTY_FOUR_BIT_LONG
184#undef SIXTY_FOUR_BIT
185#define THIRTY_TWO_BIT
186#undef SIXTEEN_BIT
187#undef EIGHT_BIT
188#endif
189
190#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
191#define CONFIG_HEADER_RC4_LOCL_H
192/* if this is defined data[i] is used instead of *data, this is a %20
193 * speedup on x86 */
194#define RC4_INDEX
195#endif
196
197#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
198#define CONFIG_HEADER_BF_LOCL_H
199#undef BF_PTR
200#endif /* HEADER_BF_LOCL_H */
201
202#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
203#define CONFIG_HEADER_DES_LOCL_H
204#ifndef DES_DEFAULT_OPTIONS
205/* the following is tweaked from a config script, that is why it is a
206 * protected undef/define */
207#ifndef DES_PTR
208#undef DES_PTR
209#endif
210
211/* This helps C compiler generate the correct code for multiple functional
212 * units. It reduces register dependancies at the expense of 2 more
213 * registers */
214#ifndef DES_RISC1
215#undef DES_RISC1
216#endif
217
218#ifndef DES_RISC2
219#undef DES_RISC2
220#endif
221
222#if defined(DES_RISC1) && defined(DES_RISC2)
223YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
224#endif
225
226/* Unroll the inner loop, this sometimes helps, sometimes hinders.
227 * Very mucy CPU dependant */
228#ifndef DES_UNROLL
229#define DES_UNROLL
230#endif
231
232/* These default values were supplied by
233 * Peter Gutman <pgut001@cs.auckland.ac.nz>
234 * They are only used if nothing else has been defined */
235#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
236/* Special defines which change the way the code is built depending on the
237 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
238 even newer MIPS CPU's, but at the moment one size fits all for
239 optimization options. Older Sparc's work better with only UNROLL, but
240 there's no way to tell at compile time what it is you're running on */
241
242#if defined( sun ) /* Newer Sparc's */
243# define DES_PTR
244# define DES_RISC1
245# define DES_UNROLL
246#elif defined( __ultrix ) /* Older MIPS */
247# define DES_PTR
248# define DES_RISC2
249# define DES_UNROLL
250#elif defined( __osf1__ ) /* Alpha */
251# define DES_PTR
252# define DES_RISC2
253#elif defined ( _AIX ) /* RS6000 */
254 /* Unknown */
255#elif defined( __hpux ) /* HP-PA */
256 /* Unknown */
257#elif defined( __aux ) /* 68K */
258 /* Unknown */
259#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
260# define DES_UNROLL
261#elif defined( __sgi ) /* Newer MIPS */
262# define DES_PTR
263# define DES_RISC2
264# define DES_UNROLL
265#elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
266# define DES_PTR
267# define DES_RISC1
268# define DES_UNROLL
269#endif /* Systems-specific speed defines */
270#endif
271
272#endif /* DES_DEFAULT_OPTIONS */
273#endif /* HEADER_DES_LOCL_H */
diff --git a/src/lib/libcrypto/crypto/arch/hppa64/opensslconf.h b/src/lib/libcrypto/crypto/arch/hppa64/opensslconf.h
deleted file mode 100644
index f8f478ff52..0000000000
--- a/src/lib/libcrypto/crypto/arch/hppa64/opensslconf.h
+++ /dev/null
@@ -1,273 +0,0 @@
1/* opensslconf.h */
2/* WARNING: Generated automatically from opensslconf.h.in by Configure. */
3
4/* OpenSSL was configured with the following options: */
5#ifndef OPENSSL_DOING_MAKEDEPEND
6
7
8#ifndef OPENSSL_NO_CAMELLIA
9# define OPENSSL_NO_CAMELLIA
10#endif
11#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
12# define OPENSSL_NO_EC_NISTP_64_GCC_128
13#endif
14#ifndef OPENSSL_NO_CMS
15# define OPENSSL_NO_CMS
16#endif
17#ifndef OPENSSL_NO_GMP
18# define OPENSSL_NO_GMP
19#endif
20#ifndef OPENSSL_NO_GOST
21# define OPENSSL_NO_GOST
22#endif
23#ifndef OPENSSL_NO_JPAKE
24# define OPENSSL_NO_JPAKE
25#endif
26#ifndef OPENSSL_NO_KRB5
27# define OPENSSL_NO_KRB5
28#endif
29#ifndef OPENSSL_NO_MD2
30# define OPENSSL_NO_MD2
31#endif
32#ifndef OPENSSL_NO_RC5
33# define OPENSSL_NO_RC5
34#endif
35#ifndef OPENSSL_NO_RFC3779
36# define OPENSSL_NO_RFC3779
37#endif
38#ifndef OPENSSL_NO_SCTP
39# define OPENSSL_NO_SCTP
40#endif
41#ifndef OPENSSL_NO_SEED
42# define OPENSSL_NO_SEED
43#endif
44#ifndef OPENSSL_NO_SRP
45# define OPENSSL_NO_SRP
46#endif
47#ifndef OPENSSL_NO_SSL2
48# define OPENSSL_NO_SSL2
49#endif
50#ifndef OPENSSL_NO_STORE
51# define OPENSSL_NO_STORE
52#endif
53
54#endif /* OPENSSL_DOING_MAKEDEPEND */
55
56#ifndef OPENSSL_THREADS
57# define OPENSSL_THREADS
58#endif
59#ifndef OPENSSL_NO_DYNAMIC_ENGINE
60# define OPENSSL_NO_DYNAMIC_ENGINE
61#endif
62
63/* The OPENSSL_NO_* macros are also defined as NO_* if the application
64 asks for it. This is a transient feature that is provided for those
65 who haven't had the time to do the appropriate changes in their
66 applications. */
67#ifdef OPENSSL_ALGORITHM_DEFINES
68# if defined(OPENSSL_NO_CAMELLIA) && !defined(NO_CAMELLIA)
69# define NO_CAMELLIA
70# endif
71# if defined(OPENSSL_NO_EC_NISTP_64_GCC_128) && !defined(NO_EC_NISTP_64_GCC_128)
72# define NO_EC_NISTP_64_GCC_128
73# endif
74# if defined(OPENSSL_NO_CMS) && !defined(NO_CMS)
75# define NO_CMS
76# endif
77# if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
78# define NO_GMP
79# endif
80# if defined(OPENSSL_NO_GOST) && !defined(NO_GOST)
81# define NO_GOST
82# endif
83# if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
84# define NO_JPAKE
85# endif
86# if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
87# define NO_KRB5
88# endif
89# if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)
90# define NO_MD2
91# endif
92# if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
93# define NO_RC5
94# endif
95# if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
96# define NO_RFC3779
97# endif
98# if defined(OPENSSL_NO_SCTP) && !defined(NO_SCTP)
99# define NO_SCTP
100# endif
101# if defined(OPENSSL_NO_SEED) && !defined(NO_SEED)
102# define NO_SEED
103# endif
104# if defined(OPENSSL_NO_SRP) && !defined(NO_SRP)
105# define NO_SRP
106# endif
107# if defined(OPENSSL_NO_SSL2) && !defined(NO_SSL2)
108# define NO_SSL2
109# endif
110# if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
111# define NO_STORE
112# endif
113#endif
114
115/* crypto/opensslconf.h.in */
116
117/* Generate 80386 code? */
118#undef I386_ONLY
119
120#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
121#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
122#define ENGINESDIR "/usr/lib/engines"
123#define OPENSSLDIR "/etc/ssl"
124#endif
125#endif
126
127#undef OPENSSL_UNISTD
128#define OPENSSL_UNISTD <unistd.h>
129
130#undef OPENSSL_EXPORT_VAR_AS_FUNCTION
131
132#if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
133#define IDEA_INT unsigned int
134#endif
135
136#if defined(HEADER_MD2_H) && !defined(MD2_INT)
137#define MD2_INT unsigned int
138#endif
139
140#if defined(HEADER_RC2_H) && !defined(RC2_INT)
141/* I need to put in a mod for the alpha - eay */
142#define RC2_INT unsigned int
143#endif
144
145#if defined(HEADER_RC4_H)
146#if !defined(RC4_INT)
147/* using int types make the structure larger but make the code faster
148 * on most boxes I have tested - up to %20 faster. */
149/*
150 * I don't know what does "most" mean, but declaring "int" is a must on:
151 * - Intel P6 because partial register stalls are very expensive;
152 * - elder Alpha because it lacks byte load/store instructions;
153 */
154#define RC4_INT unsigned int
155#endif
156#if !defined(RC4_CHUNK)
157/*
158 * This enables code handling data aligned at natural CPU word
159 * boundary. See crypto/rc4/rc4_enc.c for further details.
160 */
161#undef RC4_CHUNK
162#endif
163#endif
164
165#if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
166/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
167 * %20 speed up (longs are 8 bytes, int's are 4). */
168#ifndef DES_LONG
169#define DES_LONG unsigned int
170#endif
171#endif
172
173#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
174#define CONFIG_HEADER_BN_H
175#undef BN_LLONG
176
177/* Should we define BN_DIV2W here? */
178
179/* Only one for the following should be defined */
180/* The prime number generation stuff may not work when
181 * EIGHT_BIT but I don't care since I've only used this mode
182 * for debuging the bignum libraries */
183#define SIXTY_FOUR_BIT_LONG
184#undef SIXTY_FOUR_BIT
185#undef THIRTY_TWO_BIT
186#undef SIXTEEN_BIT
187#undef EIGHT_BIT
188#endif
189
190#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
191#define CONFIG_HEADER_RC4_LOCL_H
192/* if this is defined data[i] is used instead of *data, this is a %20
193 * speedup on x86 */
194#define RC4_INDEX
195#endif
196
197#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
198#define CONFIG_HEADER_BF_LOCL_H
199#undef BF_PTR
200#endif /* HEADER_BF_LOCL_H */
201
202#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
203#define CONFIG_HEADER_DES_LOCL_H
204#ifndef DES_DEFAULT_OPTIONS
205/* the following is tweaked from a config script, that is why it is a
206 * protected undef/define */
207#ifndef DES_PTR
208#undef DES_PTR
209#endif
210
211/* This helps C compiler generate the correct code for multiple functional
212 * units. It reduces register dependancies at the expense of 2 more
213 * registers */
214#ifndef DES_RISC1
215#define DES_RISC1
216#endif
217
218#ifndef DES_RISC2
219#undef DES_RISC2
220#endif
221
222#if defined(DES_RISC1) && defined(DES_RISC2)
223YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
224#endif
225
226/* Unroll the inner loop, this sometimes helps, sometimes hinders.
227 * Very mucy CPU dependant */
228#ifndef DES_UNROLL
229#define DES_UNROLL
230#endif
231
232/* These default values were supplied by
233 * Peter Gutman <pgut001@cs.auckland.ac.nz>
234 * They are only used if nothing else has been defined */
235#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
236/* Special defines which change the way the code is built depending on the
237 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
238 even newer MIPS CPU's, but at the moment one size fits all for
239 optimization options. Older Sparc's work better with only UNROLL, but
240 there's no way to tell at compile time what it is you're running on */
241
242#if defined( sun ) /* Newer Sparc's */
243# define DES_PTR
244# define DES_RISC1
245# define DES_UNROLL
246#elif defined( __ultrix ) /* Older MIPS */
247# define DES_PTR
248# define DES_RISC2
249# define DES_UNROLL
250#elif defined( __osf1__ ) /* Alpha */
251# define DES_PTR
252# define DES_RISC2
253#elif defined ( _AIX ) /* RS6000 */
254 /* Unknown */
255#elif defined( __hpux ) /* HP-PA */
256 /* Unknown */
257#elif defined( __aux ) /* 68K */
258 /* Unknown */
259#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
260# define DES_UNROLL
261#elif defined( __sgi ) /* Newer MIPS */
262# define DES_PTR
263# define DES_RISC2
264# define DES_UNROLL
265#elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
266# define DES_PTR
267# define DES_RISC1
268# define DES_UNROLL
269#endif /* Systems-specific speed defines */
270#endif
271
272#endif /* DES_DEFAULT_OPTIONS */
273#endif /* HEADER_DES_LOCL_H */
diff --git a/src/lib/libcrypto/crypto/arch/i386/opensslconf.h b/src/lib/libcrypto/crypto/arch/i386/opensslconf.h
deleted file mode 100644
index f7b5a6dc38..0000000000
--- a/src/lib/libcrypto/crypto/arch/i386/opensslconf.h
+++ /dev/null
@@ -1,273 +0,0 @@
1/* opensslconf.h */
2/* WARNING: Generated automatically from opensslconf.h.in by Configure. */
3
4/* OpenSSL was configured with the following options: */
5#ifndef OPENSSL_DOING_MAKEDEPEND
6
7
8#ifndef OPENSSL_NO_CAMELLIA
9# define OPENSSL_NO_CAMELLIA
10#endif
11#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
12# define OPENSSL_NO_EC_NISTP_64_GCC_128
13#endif
14#ifndef OPENSSL_NO_CMS
15# define OPENSSL_NO_CMS
16#endif
17#ifndef OPENSSL_NO_GMP
18# define OPENSSL_NO_GMP
19#endif
20#ifndef OPENSSL_NO_GOST
21# define OPENSSL_NO_GOST
22#endif
23#ifndef OPENSSL_NO_JPAKE
24# define OPENSSL_NO_JPAKE
25#endif
26#ifndef OPENSSL_NO_KRB5
27# define OPENSSL_NO_KRB5
28#endif
29#ifndef OPENSSL_NO_MD2
30# define OPENSSL_NO_MD2
31#endif
32#ifndef OPENSSL_NO_RC5
33# define OPENSSL_NO_RC5
34#endif
35#ifndef OPENSSL_NO_RFC3779
36# define OPENSSL_NO_RFC3779
37#endif
38#ifndef OPENSSL_NO_SCTP
39# define OPENSSL_NO_SCTP
40#endif
41#ifndef OPENSSL_NO_SEED
42# define OPENSSL_NO_SEED
43#endif
44#ifndef OPENSSL_NO_SRP
45# define OPENSSL_NO_SRP
46#endif
47#ifndef OPENSSL_NO_SSL2
48# define OPENSSL_NO_SSL2
49#endif
50#ifndef OPENSSL_NO_STORE
51# define OPENSSL_NO_STORE
52#endif
53
54#endif /* OPENSSL_DOING_MAKEDEPEND */
55
56#ifndef OPENSSL_THREADS
57# define OPENSSL_THREADS
58#endif
59#ifndef OPENSSL_NO_DYNAMIC_ENGINE
60# define OPENSSL_NO_DYNAMIC_ENGINE
61#endif
62
63/* The OPENSSL_NO_* macros are also defined as NO_* if the application
64 asks for it. This is a transient feature that is provided for those
65 who haven't had the time to do the appropriate changes in their
66 applications. */
67#ifdef OPENSSL_ALGORITHM_DEFINES
68# if defined(OPENSSL_NO_CAMELLIA) && !defined(NO_CAMELLIA)
69# define NO_CAMELLIA
70# endif
71# if defined(OPENSSL_NO_EC_NISTP_64_GCC_128) && !defined(NO_EC_NISTP_64_GCC_128)
72# define NO_EC_NISTP_64_GCC_128
73# endif
74# if defined(OPENSSL_NO_CMS) && !defined(NO_CMS)
75# define NO_CMS
76# endif
77# if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
78# define NO_GMP
79# endif
80# if defined(OPENSSL_NO_GOST) && !defined(NO_GOST)
81# define NO_GOST
82# endif
83# if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
84# define NO_JPAKE
85# endif
86# if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
87# define NO_KRB5
88# endif
89# if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)
90# define NO_MD2
91# endif
92# if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
93# define NO_RC5
94# endif
95# if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
96# define NO_RFC3779
97# endif
98# if defined(OPENSSL_NO_SCTP) && !defined(NO_SCTP)
99# define NO_SCTP
100# endif
101# if defined(OPENSSL_NO_SEED) && !defined(NO_SEED)
102# define NO_SEED
103# endif
104# if defined(OPENSSL_NO_SRP) && !defined(NO_SRP)
105# define NO_SRP
106# endif
107# if defined(OPENSSL_NO_SSL2) && !defined(NO_SSL2)
108# define NO_SSL2
109# endif
110# if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
111# define NO_STORE
112# endif
113#endif
114
115/* crypto/opensslconf.h.in */
116
117/* Generate 80386 code? */
118#undef I386_ONLY
119
120#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
121#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
122#define ENGINESDIR "/usr/lib/engines"
123#define OPENSSLDIR "/etc/ssl"
124#endif
125#endif
126
127#undef OPENSSL_UNISTD
128#define OPENSSL_UNISTD <unistd.h>
129
130#undef OPENSSL_EXPORT_VAR_AS_FUNCTION
131
132#if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
133#define IDEA_INT unsigned int
134#endif
135
136#if defined(HEADER_MD2_H) && !defined(MD2_INT)
137#define MD2_INT unsigned int
138#endif
139
140#if defined(HEADER_RC2_H) && !defined(RC2_INT)
141/* I need to put in a mod for the alpha - eay */
142#define RC2_INT unsigned int
143#endif
144
145#if defined(HEADER_RC4_H)
146#if !defined(RC4_INT)
147/* using int types make the structure larger but make the code faster
148 * on most boxes I have tested - up to %20 faster. */
149/*
150 * I don't know what does "most" mean, but declaring "int" is a must on:
151 * - Intel P6 because partial register stalls are very expensive;
152 * - elder Alpha because it lacks byte load/store instructions;
153 */
154#define RC4_INT unsigned int
155#endif
156#if !defined(RC4_CHUNK)
157/*
158 * This enables code handling data aligned at natural CPU word
159 * boundary. See crypto/rc4/rc4_enc.c for further details.
160 */
161#undef RC4_CHUNK
162#endif
163#endif
164
165#if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
166/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
167 * %20 speed up (longs are 8 bytes, int's are 4). */
168#ifndef DES_LONG
169#define DES_LONG unsigned long
170#endif
171#endif
172
173#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
174#define CONFIG_HEADER_BN_H
175#define BN_LLONG
176
177/* Should we define BN_DIV2W here? */
178
179/* Only one for the following should be defined */
180/* The prime number generation stuff may not work when
181 * EIGHT_BIT but I don't care since I've only used this mode
182 * for debuging the bignum libraries */
183#undef SIXTY_FOUR_BIT_LONG
184#undef SIXTY_FOUR_BIT
185#define THIRTY_TWO_BIT
186#undef SIXTEEN_BIT
187#undef EIGHT_BIT
188#endif
189
190#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
191#define CONFIG_HEADER_RC4_LOCL_H
192/* if this is defined data[i] is used instead of *data, this is a %20
193 * speedup on x86 */
194#define RC4_INDEX
195#endif
196
197#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
198#define CONFIG_HEADER_BF_LOCL_H
199#undef BF_PTR
200#endif /* HEADER_BF_LOCL_H */
201
202#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
203#define CONFIG_HEADER_DES_LOCL_H
204#ifndef DES_DEFAULT_OPTIONS
205/* the following is tweaked from a config script, that is why it is a
206 * protected undef/define */
207#ifndef DES_PTR
208#define DES_PTR
209#endif
210
211/* This helps C compiler generate the correct code for multiple functional
212 * units. It reduces register dependancies at the expense of 2 more
213 * registers */
214#ifndef DES_RISC1
215#define DES_RISC1
216#endif
217
218#ifndef DES_RISC2
219#undef DES_RISC2
220#endif
221
222#if defined(DES_RISC1) && defined(DES_RISC2)
223YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
224#endif
225
226/* Unroll the inner loop, this sometimes helps, sometimes hinders.
227 * Very mucy CPU dependant */
228#ifndef DES_UNROLL
229#define DES_UNROLL
230#endif
231
232/* These default values were supplied by
233 * Peter Gutman <pgut001@cs.auckland.ac.nz>
234 * They are only used if nothing else has been defined */
235#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
236/* Special defines which change the way the code is built depending on the
237 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
238 even newer MIPS CPU's, but at the moment one size fits all for
239 optimization options. Older Sparc's work better with only UNROLL, but
240 there's no way to tell at compile time what it is you're running on */
241
242#if defined( sun ) /* Newer Sparc's */
243# define DES_PTR
244# define DES_RISC1
245# define DES_UNROLL
246#elif defined( __ultrix ) /* Older MIPS */
247# define DES_PTR
248# define DES_RISC2
249# define DES_UNROLL
250#elif defined( __osf1__ ) /* Alpha */
251# define DES_PTR
252# define DES_RISC2
253#elif defined ( _AIX ) /* RS6000 */
254 /* Unknown */
255#elif defined( __hpux ) /* HP-PA */
256 /* Unknown */
257#elif defined( __aux ) /* 68K */
258 /* Unknown */
259#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
260# define DES_UNROLL
261#elif defined( __sgi ) /* Newer MIPS */
262# define DES_PTR
263# define DES_RISC2
264# define DES_UNROLL
265#elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
266# define DES_PTR
267# define DES_RISC1
268# define DES_UNROLL
269#endif /* Systems-specific speed defines */
270#endif
271
272#endif /* DES_DEFAULT_OPTIONS */
273#endif /* HEADER_DES_LOCL_H */
diff --git a/src/lib/libcrypto/crypto/arch/m88k/opensslconf.h b/src/lib/libcrypto/crypto/arch/m88k/opensslconf.h
deleted file mode 100644
index fc5ea38470..0000000000
--- a/src/lib/libcrypto/crypto/arch/m88k/opensslconf.h
+++ /dev/null
@@ -1,273 +0,0 @@
1/* opensslconf.h */
2/* WARNING: Generated automatically from opensslconf.h.in by Configure. */
3
4/* OpenSSL was configured with the following options: */
5#ifndef OPENSSL_DOING_MAKEDEPEND
6
7
8#ifndef OPENSSL_NO_CAMELLIA
9# define OPENSSL_NO_CAMELLIA
10#endif
11#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
12# define OPENSSL_NO_EC_NISTP_64_GCC_128
13#endif
14#ifndef OPENSSL_NO_CMS
15# define OPENSSL_NO_CMS
16#endif
17#ifndef OPENSSL_NO_GMP
18# define OPENSSL_NO_GMP
19#endif
20#ifndef OPENSSL_NO_GOST
21# define OPENSSL_NO_GOST
22#endif
23#ifndef OPENSSL_NO_JPAKE
24# define OPENSSL_NO_JPAKE
25#endif
26#ifndef OPENSSL_NO_KRB5
27# define OPENSSL_NO_KRB5
28#endif
29#ifndef OPENSSL_NO_MD2
30# define OPENSSL_NO_MD2
31#endif
32#ifndef OPENSSL_NO_RC5
33# define OPENSSL_NO_RC5
34#endif
35#ifndef OPENSSL_NO_RFC3779
36# define OPENSSL_NO_RFC3779
37#endif
38#ifndef OPENSSL_NO_SCTP
39# define OPENSSL_NO_SCTP
40#endif
41#ifndef OPENSSL_NO_SEED
42# define OPENSSL_NO_SEED
43#endif
44#ifndef OPENSSL_NO_SRP
45# define OPENSSL_NO_SRP
46#endif
47#ifndef OPENSSL_NO_SSL2
48# define OPENSSL_NO_SSL2
49#endif
50#ifndef OPENSSL_NO_STORE
51# define OPENSSL_NO_STORE
52#endif
53
54#endif /* OPENSSL_DOING_MAKEDEPEND */
55
56#ifndef OPENSSL_THREADS
57# define OPENSSL_THREADS
58#endif
59#ifndef OPENSSL_NO_DYNAMIC_ENGINE
60# define OPENSSL_NO_DYNAMIC_ENGINE
61#endif
62
63/* The OPENSSL_NO_* macros are also defined as NO_* if the application
64 asks for it. This is a transient feature that is provided for those
65 who haven't had the time to do the appropriate changes in their
66 applications. */
67#ifdef OPENSSL_ALGORITHM_DEFINES
68# if defined(OPENSSL_NO_CAMELLIA) && !defined(NO_CAMELLIA)
69# define NO_CAMELLIA
70# endif
71# if defined(OPENSSL_NO_EC_NISTP_64_GCC_128) && !defined(NO_EC_NISTP_64_GCC_128)
72# define NO_EC_NISTP_64_GCC_128
73# endif
74# if defined(OPENSSL_NO_CMS) && !defined(NO_CMS)
75# define NO_CMS
76# endif
77# if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
78# define NO_GMP
79# endif
80# if defined(OPENSSL_NO_GOST) && !defined(NO_GOST)
81# define NO_GOST
82# endif
83# if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
84# define NO_JPAKE
85# endif
86# if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
87# define NO_KRB5
88# endif
89# if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)
90# define NO_MD2
91# endif
92# if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
93# define NO_RC5
94# endif
95# if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
96# define NO_RFC3779
97# endif
98# if defined(OPENSSL_NO_SCTP) && !defined(NO_SCTP)
99# define NO_SCTP
100# endif
101# if defined(OPENSSL_NO_SEED) && !defined(NO_SEED)
102# define NO_SEED
103# endif
104# if defined(OPENSSL_NO_SRP) && !defined(NO_SRP)
105# define NO_SRP
106# endif
107# if defined(OPENSSL_NO_SSL2) && !defined(NO_SSL2)
108# define NO_SSL2
109# endif
110# if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
111# define NO_STORE
112# endif
113#endif
114
115/* crypto/opensslconf.h.in */
116
117/* Generate 80386 code? */
118#undef I386_ONLY
119
120#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
121#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
122#define ENGINESDIR "/usr/lib/engines"
123#define OPENSSLDIR "/etc/ssl"
124#endif
125#endif
126
127#undef OPENSSL_UNISTD
128#define OPENSSL_UNISTD <unistd.h>
129
130#undef OPENSSL_EXPORT_VAR_AS_FUNCTION
131
132#if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
133#define IDEA_INT unsigned int
134#endif
135
136#if defined(HEADER_MD2_H) && !defined(MD2_INT)
137#define MD2_INT unsigned int
138#endif
139
140#if defined(HEADER_RC2_H) && !defined(RC2_INT)
141/* I need to put in a mod for the alpha - eay */
142#define RC2_INT unsigned int
143#endif
144
145#if defined(HEADER_RC4_H)
146#if !defined(RC4_INT)
147/* using int types make the structure larger but make the code faster
148 * on most boxes I have tested - up to %20 faster. */
149/*
150 * I don't know what does "most" mean, but declaring "int" is a must on:
151 * - Intel P6 because partial register stalls are very expensive;
152 * - elder Alpha because it lacks byte load/store instructions;
153 */
154#define RC4_INT unsigned int
155#endif
156#if !defined(RC4_CHUNK)
157/*
158 * This enables code handling data aligned at natural CPU word
159 * boundary. See crypto/rc4/rc4_enc.c for further details.
160 */
161#undef RC4_CHUNK
162#endif
163#endif
164
165#if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
166/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
167 * %20 speed up (longs are 8 bytes, int's are 4). */
168#ifndef DES_LONG
169#define DES_LONG unsigned int
170#endif
171#endif
172
173#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
174#define CONFIG_HEADER_BN_H
175#define BN_LLONG
176
177/* Should we define BN_DIV2W here? */
178
179/* Only one for the following should be defined */
180/* The prime number generation stuff may not work when
181 * EIGHT_BIT but I don't care since I've only used this mode
182 * for debuging the bignum libraries */
183#undef SIXTY_FOUR_BIT_LONG
184#undef SIXTY_FOUR_BIT
185#define THIRTY_TWO_BIT
186#undef SIXTEEN_BIT
187#undef EIGHT_BIT
188#endif
189
190#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
191#define CONFIG_HEADER_RC4_LOCL_H
192/* if this is defined data[i] is used instead of *data, this is a %20
193 * speedup on x86 */
194#define RC4_INDEX
195#endif
196
197#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
198#define CONFIG_HEADER_BF_LOCL_H
199#undef BF_PTR
200#endif /* HEADER_BF_LOCL_H */
201
202#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
203#define CONFIG_HEADER_DES_LOCL_H
204#ifndef DES_DEFAULT_OPTIONS
205/* the following is tweaked from a config script, that is why it is a
206 * protected undef/define */
207#ifndef DES_PTR
208#undef DES_PTR
209#endif
210
211/* This helps C compiler generate the correct code for multiple functional
212 * units. It reduces register dependancies at the expense of 2 more
213 * registers */
214#ifndef DES_RISC1
215#undef DES_RISC1
216#endif
217
218#ifndef DES_RISC2
219#undef DES_RISC2
220#endif
221
222#if defined(DES_RISC1) && defined(DES_RISC2)
223YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
224#endif
225
226/* Unroll the inner loop, this sometimes helps, sometimes hinders.
227 * Very mucy CPU dependant */
228#ifndef DES_UNROLL
229#define DES_UNROLL
230#endif
231
232/* These default values were supplied by
233 * Peter Gutman <pgut001@cs.auckland.ac.nz>
234 * They are only used if nothing else has been defined */
235#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
236/* Special defines which change the way the code is built depending on the
237 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
238 even newer MIPS CPU's, but at the moment one size fits all for
239 optimization options. Older Sparc's work better with only UNROLL, but
240 there's no way to tell at compile time what it is you're running on */
241
242#if defined( sun ) /* Newer Sparc's */
243# define DES_PTR
244# define DES_RISC1
245# define DES_UNROLL
246#elif defined( __ultrix ) /* Older MIPS */
247# define DES_PTR
248# define DES_RISC2
249# define DES_UNROLL
250#elif defined( __osf1__ ) /* Alpha */
251# define DES_PTR
252# define DES_RISC2
253#elif defined ( _AIX ) /* RS6000 */
254 /* Unknown */
255#elif defined( __hpux ) /* HP-PA */
256 /* Unknown */
257#elif defined( __aux ) /* 68K */
258 /* Unknown */
259#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
260# define DES_UNROLL
261#elif defined( __sgi ) /* Newer MIPS */
262# define DES_PTR
263# define DES_RISC2
264# define DES_UNROLL
265#elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
266# define DES_PTR
267# define DES_RISC1
268# define DES_UNROLL
269#endif /* Systems-specific speed defines */
270#endif
271
272#endif /* DES_DEFAULT_OPTIONS */
273#endif /* HEADER_DES_LOCL_H */
diff --git a/src/lib/libcrypto/crypto/arch/mips64/opensslconf.h b/src/lib/libcrypto/crypto/arch/mips64/opensslconf.h
deleted file mode 100644
index e55282fd63..0000000000
--- a/src/lib/libcrypto/crypto/arch/mips64/opensslconf.h
+++ /dev/null
@@ -1,273 +0,0 @@
1/* opensslconf.h */
2/* WARNING: Generated automatically from opensslconf.h.in by Configure. */
3
4/* OpenSSL was configured with the following options: */
5#ifndef OPENSSL_DOING_MAKEDEPEND
6
7
8#ifndef OPENSSL_NO_CAMELLIA
9# define OPENSSL_NO_CAMELLIA
10#endif
11#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
12# define OPENSSL_NO_EC_NISTP_64_GCC_128
13#endif
14#ifndef OPENSSL_NO_CMS
15# define OPENSSL_NO_CMS
16#endif
17#ifndef OPENSSL_NO_GMP
18# define OPENSSL_NO_GMP
19#endif
20#ifndef OPENSSL_NO_GOST
21# define OPENSSL_NO_GOST
22#endif
23#ifndef OPENSSL_NO_JPAKE
24# define OPENSSL_NO_JPAKE
25#endif
26#ifndef OPENSSL_NO_KRB5
27# define OPENSSL_NO_KRB5
28#endif
29#ifndef OPENSSL_NO_MD2
30# define OPENSSL_NO_MD2
31#endif
32#ifndef OPENSSL_NO_RC5
33# define OPENSSL_NO_RC5
34#endif
35#ifndef OPENSSL_NO_RFC3779
36# define OPENSSL_NO_RFC3779
37#endif
38#ifndef OPENSSL_NO_SCTP
39# define OPENSSL_NO_SCTP
40#endif
41#ifndef OPENSSL_NO_SEED
42# define OPENSSL_NO_SEED
43#endif
44#ifndef OPENSSL_NO_SRP
45# define OPENSSL_NO_SRP
46#endif
47#ifndef OPENSSL_NO_SSL2
48# define OPENSSL_NO_SSL2
49#endif
50#ifndef OPENSSL_NO_STORE
51# define OPENSSL_NO_STORE
52#endif
53
54#endif /* OPENSSL_DOING_MAKEDEPEND */
55
56#ifndef OPENSSL_THREADS
57# define OPENSSL_THREADS
58#endif
59#ifndef OPENSSL_NO_DYNAMIC_ENGINE
60# define OPENSSL_NO_DYNAMIC_ENGINE
61#endif
62
63/* The OPENSSL_NO_* macros are also defined as NO_* if the application
64 asks for it. This is a transient feature that is provided for those
65 who haven't had the time to do the appropriate changes in their
66 applications. */
67#ifdef OPENSSL_ALGORITHM_DEFINES
68# if defined(OPENSSL_NO_CAMELLIA) && !defined(NO_CAMELLIA)
69# define NO_CAMELLIA
70# endif
71# if defined(OPENSSL_NO_EC_NISTP_64_GCC_128) && !defined(NO_EC_NISTP_64_GCC_128)
72# define NO_EC_NISTP_64_GCC_128
73# endif
74# if defined(OPENSSL_NO_CMS) && !defined(NO_CMS)
75# define NO_CMS
76# endif
77# if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
78# define NO_GMP
79# endif
80# if defined(OPENSSL_NO_GOST) && !defined(NO_GOST)
81# define NO_GOST
82# endif
83# if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
84# define NO_JPAKE
85# endif
86# if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
87# define NO_KRB5
88# endif
89# if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)
90# define NO_MD2
91# endif
92# if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
93# define NO_RC5
94# endif
95# if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
96# define NO_RFC3779
97# endif
98# if defined(OPENSSL_NO_SCTP) && !defined(NO_SCTP)
99# define NO_SCTP
100# endif
101# if defined(OPENSSL_NO_SEED) && !defined(NO_SEED)
102# define NO_SEED
103# endif
104# if defined(OPENSSL_NO_SRP) && !defined(NO_SRP)
105# define NO_SRP
106# endif
107# if defined(OPENSSL_NO_SSL2) && !defined(NO_SSL2)
108# define NO_SSL2
109# endif
110# if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
111# define NO_STORE
112# endif
113#endif
114
115/* crypto/opensslconf.h.in */
116
117/* Generate 80386 code? */
118#undef I386_ONLY
119
120#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
121#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
122#define ENGINESDIR "/usr/lib/engines"
123#define OPENSSLDIR "/etc/ssl"
124#endif
125#endif
126
127#undef OPENSSL_UNISTD
128#define OPENSSL_UNISTD <unistd.h>
129
130#undef OPENSSL_EXPORT_VAR_AS_FUNCTION
131
132#if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
133#define IDEA_INT unsigned int
134#endif
135
136#if defined(HEADER_MD2_H) && !defined(MD2_INT)
137#define MD2_INT unsigned int
138#endif
139
140#if defined(HEADER_RC2_H) && !defined(RC2_INT)
141/* I need to put in a mod for the alpha - eay */
142#define RC2_INT unsigned int
143#endif
144
145#if defined(HEADER_RC4_H)
146#if !defined(RC4_INT)
147/* using int types make the structure larger but make the code faster
148 * on most boxes I have tested - up to %20 faster. */
149/*
150 * I don't know what does "most" mean, but declaring "int" is a must on:
151 * - Intel P6 because partial register stalls are very expensive;
152 * - elder Alpha because it lacks byte load/store instructions;
153 */
154#define RC4_INT unsigned int
155#endif
156#if !defined(RC4_CHUNK)
157/*
158 * This enables code handling data aligned at natural CPU word
159 * boundary. See crypto/rc4/rc4_enc.c for further details.
160 */
161#define RC4_CHUNK unsigned long
162#endif
163#endif
164
165#if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
166/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
167 * %20 speed up (longs are 8 bytes, int's are 4). */
168#ifndef DES_LONG
169#define DES_LONG unsigned int
170#endif
171#endif
172
173#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
174#define CONFIG_HEADER_BN_H
175#undef BN_LLONG
176
177/* Should we define BN_DIV2W here? */
178
179/* Only one for the following should be defined */
180/* The prime number generation stuff may not work when
181 * EIGHT_BIT but I don't care since I've only used this mode
182 * for debuging the bignum libraries */
183#define SIXTY_FOUR_BIT_LONG
184#undef SIXTY_FOUR_BIT
185#undef THIRTY_TWO_BIT
186#undef SIXTEEN_BIT
187#undef EIGHT_BIT
188#endif
189
190#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
191#define CONFIG_HEADER_RC4_LOCL_H
192/* if this is defined data[i] is used instead of *data, this is a %20
193 * speedup on x86 */
194#undef RC4_INDEX
195#endif
196
197#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
198#define CONFIG_HEADER_BF_LOCL_H
199#define BF_PTR
200#endif /* HEADER_BF_LOCL_H */
201
202#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
203#define CONFIG_HEADER_DES_LOCL_H
204#ifndef DES_DEFAULT_OPTIONS
205/* the following is tweaked from a config script, that is why it is a
206 * protected undef/define */
207#ifndef DES_PTR
208#define DES_PTR
209#endif
210
211/* This helps C compiler generate the correct code for multiple functional
212 * units. It reduces register dependancies at the expense of 2 more
213 * registers */
214#ifndef DES_RISC1
215#undef DES_RISC1
216#endif
217
218#ifndef DES_RISC2
219#define DES_RISC2
220#endif
221
222#if defined(DES_RISC1) && defined(DES_RISC2)
223YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
224#endif
225
226/* Unroll the inner loop, this sometimes helps, sometimes hinders.
227 * Very mucy CPU dependant */
228#ifndef DES_UNROLL
229#undef DES_UNROLL
230#endif
231
232/* These default values were supplied by
233 * Peter Gutman <pgut001@cs.auckland.ac.nz>
234 * They are only used if nothing else has been defined */
235#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
236/* Special defines which change the way the code is built depending on the
237 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
238 even newer MIPS CPU's, but at the moment one size fits all for
239 optimization options. Older Sparc's work better with only UNROLL, but
240 there's no way to tell at compile time what it is you're running on */
241
242#if defined( sun ) /* Newer Sparc's */
243# define DES_PTR
244# define DES_RISC1
245# define DES_UNROLL
246#elif defined( __ultrix ) /* Older MIPS */
247# define DES_PTR
248# define DES_RISC2
249# define DES_UNROLL
250#elif defined( __osf1__ ) /* Alpha */
251# define DES_PTR
252# define DES_RISC2
253#elif defined ( _AIX ) /* RS6000 */
254 /* Unknown */
255#elif defined( __hpux ) /* HP-PA */
256 /* Unknown */
257#elif defined( __aux ) /* 68K */
258 /* Unknown */
259#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
260# define DES_UNROLL
261#elif defined( __sgi ) /* Newer MIPS */
262# define DES_PTR
263# define DES_RISC2
264# define DES_UNROLL
265#elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
266# define DES_PTR
267# define DES_RISC1
268# define DES_UNROLL
269#endif /* Systems-specific speed defines */
270#endif
271
272#endif /* DES_DEFAULT_OPTIONS */
273#endif /* HEADER_DES_LOCL_H */
diff --git a/src/lib/libcrypto/crypto/arch/powerpc/opensslconf.h b/src/lib/libcrypto/crypto/arch/powerpc/opensslconf.h
deleted file mode 100644
index fc5ea38470..0000000000
--- a/src/lib/libcrypto/crypto/arch/powerpc/opensslconf.h
+++ /dev/null
@@ -1,273 +0,0 @@
1/* opensslconf.h */
2/* WARNING: Generated automatically from opensslconf.h.in by Configure. */
3
4/* OpenSSL was configured with the following options: */
5#ifndef OPENSSL_DOING_MAKEDEPEND
6
7
8#ifndef OPENSSL_NO_CAMELLIA
9# define OPENSSL_NO_CAMELLIA
10#endif
11#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
12# define OPENSSL_NO_EC_NISTP_64_GCC_128
13#endif
14#ifndef OPENSSL_NO_CMS
15# define OPENSSL_NO_CMS
16#endif
17#ifndef OPENSSL_NO_GMP
18# define OPENSSL_NO_GMP
19#endif
20#ifndef OPENSSL_NO_GOST
21# define OPENSSL_NO_GOST
22#endif
23#ifndef OPENSSL_NO_JPAKE
24# define OPENSSL_NO_JPAKE
25#endif
26#ifndef OPENSSL_NO_KRB5
27# define OPENSSL_NO_KRB5
28#endif
29#ifndef OPENSSL_NO_MD2
30# define OPENSSL_NO_MD2
31#endif
32#ifndef OPENSSL_NO_RC5
33# define OPENSSL_NO_RC5
34#endif
35#ifndef OPENSSL_NO_RFC3779
36# define OPENSSL_NO_RFC3779
37#endif
38#ifndef OPENSSL_NO_SCTP
39# define OPENSSL_NO_SCTP
40#endif
41#ifndef OPENSSL_NO_SEED
42# define OPENSSL_NO_SEED
43#endif
44#ifndef OPENSSL_NO_SRP
45# define OPENSSL_NO_SRP
46#endif
47#ifndef OPENSSL_NO_SSL2
48# define OPENSSL_NO_SSL2
49#endif
50#ifndef OPENSSL_NO_STORE
51# define OPENSSL_NO_STORE
52#endif
53
54#endif /* OPENSSL_DOING_MAKEDEPEND */
55
56#ifndef OPENSSL_THREADS
57# define OPENSSL_THREADS
58#endif
59#ifndef OPENSSL_NO_DYNAMIC_ENGINE
60# define OPENSSL_NO_DYNAMIC_ENGINE
61#endif
62
63/* The OPENSSL_NO_* macros are also defined as NO_* if the application
64 asks for it. This is a transient feature that is provided for those
65 who haven't had the time to do the appropriate changes in their
66 applications. */
67#ifdef OPENSSL_ALGORITHM_DEFINES
68# if defined(OPENSSL_NO_CAMELLIA) && !defined(NO_CAMELLIA)
69# define NO_CAMELLIA
70# endif
71# if defined(OPENSSL_NO_EC_NISTP_64_GCC_128) && !defined(NO_EC_NISTP_64_GCC_128)
72# define NO_EC_NISTP_64_GCC_128
73# endif
74# if defined(OPENSSL_NO_CMS) && !defined(NO_CMS)
75# define NO_CMS
76# endif
77# if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
78# define NO_GMP
79# endif
80# if defined(OPENSSL_NO_GOST) && !defined(NO_GOST)
81# define NO_GOST
82# endif
83# if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
84# define NO_JPAKE
85# endif
86# if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
87# define NO_KRB5
88# endif
89# if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)
90# define NO_MD2
91# endif
92# if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
93# define NO_RC5
94# endif
95# if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
96# define NO_RFC3779
97# endif
98# if defined(OPENSSL_NO_SCTP) && !defined(NO_SCTP)
99# define NO_SCTP
100# endif
101# if defined(OPENSSL_NO_SEED) && !defined(NO_SEED)
102# define NO_SEED
103# endif
104# if defined(OPENSSL_NO_SRP) && !defined(NO_SRP)
105# define NO_SRP
106# endif
107# if defined(OPENSSL_NO_SSL2) && !defined(NO_SSL2)
108# define NO_SSL2
109# endif
110# if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
111# define NO_STORE
112# endif
113#endif
114
115/* crypto/opensslconf.h.in */
116
117/* Generate 80386 code? */
118#undef I386_ONLY
119
120#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
121#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
122#define ENGINESDIR "/usr/lib/engines"
123#define OPENSSLDIR "/etc/ssl"
124#endif
125#endif
126
127#undef OPENSSL_UNISTD
128#define OPENSSL_UNISTD <unistd.h>
129
130#undef OPENSSL_EXPORT_VAR_AS_FUNCTION
131
132#if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
133#define IDEA_INT unsigned int
134#endif
135
136#if defined(HEADER_MD2_H) && !defined(MD2_INT)
137#define MD2_INT unsigned int
138#endif
139
140#if defined(HEADER_RC2_H) && !defined(RC2_INT)
141/* I need to put in a mod for the alpha - eay */
142#define RC2_INT unsigned int
143#endif
144
145#if defined(HEADER_RC4_H)
146#if !defined(RC4_INT)
147/* using int types make the structure larger but make the code faster
148 * on most boxes I have tested - up to %20 faster. */
149/*
150 * I don't know what does "most" mean, but declaring "int" is a must on:
151 * - Intel P6 because partial register stalls are very expensive;
152 * - elder Alpha because it lacks byte load/store instructions;
153 */
154#define RC4_INT unsigned int
155#endif
156#if !defined(RC4_CHUNK)
157/*
158 * This enables code handling data aligned at natural CPU word
159 * boundary. See crypto/rc4/rc4_enc.c for further details.
160 */
161#undef RC4_CHUNK
162#endif
163#endif
164
165#if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
166/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
167 * %20 speed up (longs are 8 bytes, int's are 4). */
168#ifndef DES_LONG
169#define DES_LONG unsigned int
170#endif
171#endif
172
173#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
174#define CONFIG_HEADER_BN_H
175#define BN_LLONG
176
177/* Should we define BN_DIV2W here? */
178
179/* Only one for the following should be defined */
180/* The prime number generation stuff may not work when
181 * EIGHT_BIT but I don't care since I've only used this mode
182 * for debuging the bignum libraries */
183#undef SIXTY_FOUR_BIT_LONG
184#undef SIXTY_FOUR_BIT
185#define THIRTY_TWO_BIT
186#undef SIXTEEN_BIT
187#undef EIGHT_BIT
188#endif
189
190#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
191#define CONFIG_HEADER_RC4_LOCL_H
192/* if this is defined data[i] is used instead of *data, this is a %20
193 * speedup on x86 */
194#define RC4_INDEX
195#endif
196
197#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
198#define CONFIG_HEADER_BF_LOCL_H
199#undef BF_PTR
200#endif /* HEADER_BF_LOCL_H */
201
202#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
203#define CONFIG_HEADER_DES_LOCL_H
204#ifndef DES_DEFAULT_OPTIONS
205/* the following is tweaked from a config script, that is why it is a
206 * protected undef/define */
207#ifndef DES_PTR
208#undef DES_PTR
209#endif
210
211/* This helps C compiler generate the correct code for multiple functional
212 * units. It reduces register dependancies at the expense of 2 more
213 * registers */
214#ifndef DES_RISC1
215#undef DES_RISC1
216#endif
217
218#ifndef DES_RISC2
219#undef DES_RISC2
220#endif
221
222#if defined(DES_RISC1) && defined(DES_RISC2)
223YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
224#endif
225
226/* Unroll the inner loop, this sometimes helps, sometimes hinders.
227 * Very mucy CPU dependant */
228#ifndef DES_UNROLL
229#define DES_UNROLL
230#endif
231
232/* These default values were supplied by
233 * Peter Gutman <pgut001@cs.auckland.ac.nz>
234 * They are only used if nothing else has been defined */
235#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
236/* Special defines which change the way the code is built depending on the
237 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
238 even newer MIPS CPU's, but at the moment one size fits all for
239 optimization options. Older Sparc's work better with only UNROLL, but
240 there's no way to tell at compile time what it is you're running on */
241
242#if defined( sun ) /* Newer Sparc's */
243# define DES_PTR
244# define DES_RISC1
245# define DES_UNROLL
246#elif defined( __ultrix ) /* Older MIPS */
247# define DES_PTR
248# define DES_RISC2
249# define DES_UNROLL
250#elif defined( __osf1__ ) /* Alpha */
251# define DES_PTR
252# define DES_RISC2
253#elif defined ( _AIX ) /* RS6000 */
254 /* Unknown */
255#elif defined( __hpux ) /* HP-PA */
256 /* Unknown */
257#elif defined( __aux ) /* 68K */
258 /* Unknown */
259#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
260# define DES_UNROLL
261#elif defined( __sgi ) /* Newer MIPS */
262# define DES_PTR
263# define DES_RISC2
264# define DES_UNROLL
265#elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
266# define DES_PTR
267# define DES_RISC1
268# define DES_UNROLL
269#endif /* Systems-specific speed defines */
270#endif
271
272#endif /* DES_DEFAULT_OPTIONS */
273#endif /* HEADER_DES_LOCL_H */
diff --git a/src/lib/libcrypto/crypto/arch/sh/opensslconf.h b/src/lib/libcrypto/crypto/arch/sh/opensslconf.h
deleted file mode 100644
index fc5ea38470..0000000000
--- a/src/lib/libcrypto/crypto/arch/sh/opensslconf.h
+++ /dev/null
@@ -1,273 +0,0 @@
1/* opensslconf.h */
2/* WARNING: Generated automatically from opensslconf.h.in by Configure. */
3
4/* OpenSSL was configured with the following options: */
5#ifndef OPENSSL_DOING_MAKEDEPEND
6
7
8#ifndef OPENSSL_NO_CAMELLIA
9# define OPENSSL_NO_CAMELLIA
10#endif
11#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
12# define OPENSSL_NO_EC_NISTP_64_GCC_128
13#endif
14#ifndef OPENSSL_NO_CMS
15# define OPENSSL_NO_CMS
16#endif
17#ifndef OPENSSL_NO_GMP
18# define OPENSSL_NO_GMP
19#endif
20#ifndef OPENSSL_NO_GOST
21# define OPENSSL_NO_GOST
22#endif
23#ifndef OPENSSL_NO_JPAKE
24# define OPENSSL_NO_JPAKE
25#endif
26#ifndef OPENSSL_NO_KRB5
27# define OPENSSL_NO_KRB5
28#endif
29#ifndef OPENSSL_NO_MD2
30# define OPENSSL_NO_MD2
31#endif
32#ifndef OPENSSL_NO_RC5
33# define OPENSSL_NO_RC5
34#endif
35#ifndef OPENSSL_NO_RFC3779
36# define OPENSSL_NO_RFC3779
37#endif
38#ifndef OPENSSL_NO_SCTP
39# define OPENSSL_NO_SCTP
40#endif
41#ifndef OPENSSL_NO_SEED
42# define OPENSSL_NO_SEED
43#endif
44#ifndef OPENSSL_NO_SRP
45# define OPENSSL_NO_SRP
46#endif
47#ifndef OPENSSL_NO_SSL2
48# define OPENSSL_NO_SSL2
49#endif
50#ifndef OPENSSL_NO_STORE
51# define OPENSSL_NO_STORE
52#endif
53
54#endif /* OPENSSL_DOING_MAKEDEPEND */
55
56#ifndef OPENSSL_THREADS
57# define OPENSSL_THREADS
58#endif
59#ifndef OPENSSL_NO_DYNAMIC_ENGINE
60# define OPENSSL_NO_DYNAMIC_ENGINE
61#endif
62
63/* The OPENSSL_NO_* macros are also defined as NO_* if the application
64 asks for it. This is a transient feature that is provided for those
65 who haven't had the time to do the appropriate changes in their
66 applications. */
67#ifdef OPENSSL_ALGORITHM_DEFINES
68# if defined(OPENSSL_NO_CAMELLIA) && !defined(NO_CAMELLIA)
69# define NO_CAMELLIA
70# endif
71# if defined(OPENSSL_NO_EC_NISTP_64_GCC_128) && !defined(NO_EC_NISTP_64_GCC_128)
72# define NO_EC_NISTP_64_GCC_128
73# endif
74# if defined(OPENSSL_NO_CMS) && !defined(NO_CMS)
75# define NO_CMS
76# endif
77# if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
78# define NO_GMP
79# endif
80# if defined(OPENSSL_NO_GOST) && !defined(NO_GOST)
81# define NO_GOST
82# endif
83# if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
84# define NO_JPAKE
85# endif
86# if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
87# define NO_KRB5
88# endif
89# if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)
90# define NO_MD2
91# endif
92# if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
93# define NO_RC5
94# endif
95# if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
96# define NO_RFC3779
97# endif
98# if defined(OPENSSL_NO_SCTP) && !defined(NO_SCTP)
99# define NO_SCTP
100# endif
101# if defined(OPENSSL_NO_SEED) && !defined(NO_SEED)
102# define NO_SEED
103# endif
104# if defined(OPENSSL_NO_SRP) && !defined(NO_SRP)
105# define NO_SRP
106# endif
107# if defined(OPENSSL_NO_SSL2) && !defined(NO_SSL2)
108# define NO_SSL2
109# endif
110# if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
111# define NO_STORE
112# endif
113#endif
114
115/* crypto/opensslconf.h.in */
116
117/* Generate 80386 code? */
118#undef I386_ONLY
119
120#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
121#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
122#define ENGINESDIR "/usr/lib/engines"
123#define OPENSSLDIR "/etc/ssl"
124#endif
125#endif
126
127#undef OPENSSL_UNISTD
128#define OPENSSL_UNISTD <unistd.h>
129
130#undef OPENSSL_EXPORT_VAR_AS_FUNCTION
131
132#if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
133#define IDEA_INT unsigned int
134#endif
135
136#if defined(HEADER_MD2_H) && !defined(MD2_INT)
137#define MD2_INT unsigned int
138#endif
139
140#if defined(HEADER_RC2_H) && !defined(RC2_INT)
141/* I need to put in a mod for the alpha - eay */
142#define RC2_INT unsigned int
143#endif
144
145#if defined(HEADER_RC4_H)
146#if !defined(RC4_INT)
147/* using int types make the structure larger but make the code faster
148 * on most boxes I have tested - up to %20 faster. */
149/*
150 * I don't know what does "most" mean, but declaring "int" is a must on:
151 * - Intel P6 because partial register stalls are very expensive;
152 * - elder Alpha because it lacks byte load/store instructions;
153 */
154#define RC4_INT unsigned int
155#endif
156#if !defined(RC4_CHUNK)
157/*
158 * This enables code handling data aligned at natural CPU word
159 * boundary. See crypto/rc4/rc4_enc.c for further details.
160 */
161#undef RC4_CHUNK
162#endif
163#endif
164
165#if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
166/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
167 * %20 speed up (longs are 8 bytes, int's are 4). */
168#ifndef DES_LONG
169#define DES_LONG unsigned int
170#endif
171#endif
172
173#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
174#define CONFIG_HEADER_BN_H
175#define BN_LLONG
176
177/* Should we define BN_DIV2W here? */
178
179/* Only one for the following should be defined */
180/* The prime number generation stuff may not work when
181 * EIGHT_BIT but I don't care since I've only used this mode
182 * for debuging the bignum libraries */
183#undef SIXTY_FOUR_BIT_LONG
184#undef SIXTY_FOUR_BIT
185#define THIRTY_TWO_BIT
186#undef SIXTEEN_BIT
187#undef EIGHT_BIT
188#endif
189
190#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
191#define CONFIG_HEADER_RC4_LOCL_H
192/* if this is defined data[i] is used instead of *data, this is a %20
193 * speedup on x86 */
194#define RC4_INDEX
195#endif
196
197#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
198#define CONFIG_HEADER_BF_LOCL_H
199#undef BF_PTR
200#endif /* HEADER_BF_LOCL_H */
201
202#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
203#define CONFIG_HEADER_DES_LOCL_H
204#ifndef DES_DEFAULT_OPTIONS
205/* the following is tweaked from a config script, that is why it is a
206 * protected undef/define */
207#ifndef DES_PTR
208#undef DES_PTR
209#endif
210
211/* This helps C compiler generate the correct code for multiple functional
212 * units. It reduces register dependancies at the expense of 2 more
213 * registers */
214#ifndef DES_RISC1
215#undef DES_RISC1
216#endif
217
218#ifndef DES_RISC2
219#undef DES_RISC2
220#endif
221
222#if defined(DES_RISC1) && defined(DES_RISC2)
223YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
224#endif
225
226/* Unroll the inner loop, this sometimes helps, sometimes hinders.
227 * Very mucy CPU dependant */
228#ifndef DES_UNROLL
229#define DES_UNROLL
230#endif
231
232/* These default values were supplied by
233 * Peter Gutman <pgut001@cs.auckland.ac.nz>
234 * They are only used if nothing else has been defined */
235#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
236/* Special defines which change the way the code is built depending on the
237 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
238 even newer MIPS CPU's, but at the moment one size fits all for
239 optimization options. Older Sparc's work better with only UNROLL, but
240 there's no way to tell at compile time what it is you're running on */
241
242#if defined( sun ) /* Newer Sparc's */
243# define DES_PTR
244# define DES_RISC1
245# define DES_UNROLL
246#elif defined( __ultrix ) /* Older MIPS */
247# define DES_PTR
248# define DES_RISC2
249# define DES_UNROLL
250#elif defined( __osf1__ ) /* Alpha */
251# define DES_PTR
252# define DES_RISC2
253#elif defined ( _AIX ) /* RS6000 */
254 /* Unknown */
255#elif defined( __hpux ) /* HP-PA */
256 /* Unknown */
257#elif defined( __aux ) /* 68K */
258 /* Unknown */
259#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
260# define DES_UNROLL
261#elif defined( __sgi ) /* Newer MIPS */
262# define DES_PTR
263# define DES_RISC2
264# define DES_UNROLL
265#elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
266# define DES_PTR
267# define DES_RISC1
268# define DES_UNROLL
269#endif /* Systems-specific speed defines */
270#endif
271
272#endif /* DES_DEFAULT_OPTIONS */
273#endif /* HEADER_DES_LOCL_H */
diff --git a/src/lib/libcrypto/crypto/arch/sparc/opensslconf.h b/src/lib/libcrypto/crypto/arch/sparc/opensslconf.h
deleted file mode 100644
index fc5ea38470..0000000000
--- a/src/lib/libcrypto/crypto/arch/sparc/opensslconf.h
+++ /dev/null
@@ -1,273 +0,0 @@
1/* opensslconf.h */
2/* WARNING: Generated automatically from opensslconf.h.in by Configure. */
3
4/* OpenSSL was configured with the following options: */
5#ifndef OPENSSL_DOING_MAKEDEPEND
6
7
8#ifndef OPENSSL_NO_CAMELLIA
9# define OPENSSL_NO_CAMELLIA
10#endif
11#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
12# define OPENSSL_NO_EC_NISTP_64_GCC_128
13#endif
14#ifndef OPENSSL_NO_CMS
15# define OPENSSL_NO_CMS
16#endif
17#ifndef OPENSSL_NO_GMP
18# define OPENSSL_NO_GMP
19#endif
20#ifndef OPENSSL_NO_GOST
21# define OPENSSL_NO_GOST
22#endif
23#ifndef OPENSSL_NO_JPAKE
24# define OPENSSL_NO_JPAKE
25#endif
26#ifndef OPENSSL_NO_KRB5
27# define OPENSSL_NO_KRB5
28#endif
29#ifndef OPENSSL_NO_MD2
30# define OPENSSL_NO_MD2
31#endif
32#ifndef OPENSSL_NO_RC5
33# define OPENSSL_NO_RC5
34#endif
35#ifndef OPENSSL_NO_RFC3779
36# define OPENSSL_NO_RFC3779
37#endif
38#ifndef OPENSSL_NO_SCTP
39# define OPENSSL_NO_SCTP
40#endif
41#ifndef OPENSSL_NO_SEED
42# define OPENSSL_NO_SEED
43#endif
44#ifndef OPENSSL_NO_SRP
45# define OPENSSL_NO_SRP
46#endif
47#ifndef OPENSSL_NO_SSL2
48# define OPENSSL_NO_SSL2
49#endif
50#ifndef OPENSSL_NO_STORE
51# define OPENSSL_NO_STORE
52#endif
53
54#endif /* OPENSSL_DOING_MAKEDEPEND */
55
56#ifndef OPENSSL_THREADS
57# define OPENSSL_THREADS
58#endif
59#ifndef OPENSSL_NO_DYNAMIC_ENGINE
60# define OPENSSL_NO_DYNAMIC_ENGINE
61#endif
62
63/* The OPENSSL_NO_* macros are also defined as NO_* if the application
64 asks for it. This is a transient feature that is provided for those
65 who haven't had the time to do the appropriate changes in their
66 applications. */
67#ifdef OPENSSL_ALGORITHM_DEFINES
68# if defined(OPENSSL_NO_CAMELLIA) && !defined(NO_CAMELLIA)
69# define NO_CAMELLIA
70# endif
71# if defined(OPENSSL_NO_EC_NISTP_64_GCC_128) && !defined(NO_EC_NISTP_64_GCC_128)
72# define NO_EC_NISTP_64_GCC_128
73# endif
74# if defined(OPENSSL_NO_CMS) && !defined(NO_CMS)
75# define NO_CMS
76# endif
77# if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
78# define NO_GMP
79# endif
80# if defined(OPENSSL_NO_GOST) && !defined(NO_GOST)
81# define NO_GOST
82# endif
83# if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
84# define NO_JPAKE
85# endif
86# if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
87# define NO_KRB5
88# endif
89# if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)
90# define NO_MD2
91# endif
92# if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
93# define NO_RC5
94# endif
95# if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
96# define NO_RFC3779
97# endif
98# if defined(OPENSSL_NO_SCTP) && !defined(NO_SCTP)
99# define NO_SCTP
100# endif
101# if defined(OPENSSL_NO_SEED) && !defined(NO_SEED)
102# define NO_SEED
103# endif
104# if defined(OPENSSL_NO_SRP) && !defined(NO_SRP)
105# define NO_SRP
106# endif
107# if defined(OPENSSL_NO_SSL2) && !defined(NO_SSL2)
108# define NO_SSL2
109# endif
110# if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
111# define NO_STORE
112# endif
113#endif
114
115/* crypto/opensslconf.h.in */
116
117/* Generate 80386 code? */
118#undef I386_ONLY
119
120#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
121#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
122#define ENGINESDIR "/usr/lib/engines"
123#define OPENSSLDIR "/etc/ssl"
124#endif
125#endif
126
127#undef OPENSSL_UNISTD
128#define OPENSSL_UNISTD <unistd.h>
129
130#undef OPENSSL_EXPORT_VAR_AS_FUNCTION
131
132#if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
133#define IDEA_INT unsigned int
134#endif
135
136#if defined(HEADER_MD2_H) && !defined(MD2_INT)
137#define MD2_INT unsigned int
138#endif
139
140#if defined(HEADER_RC2_H) && !defined(RC2_INT)
141/* I need to put in a mod for the alpha - eay */
142#define RC2_INT unsigned int
143#endif
144
145#if defined(HEADER_RC4_H)
146#if !defined(RC4_INT)
147/* using int types make the structure larger but make the code faster
148 * on most boxes I have tested - up to %20 faster. */
149/*
150 * I don't know what does "most" mean, but declaring "int" is a must on:
151 * - Intel P6 because partial register stalls are very expensive;
152 * - elder Alpha because it lacks byte load/store instructions;
153 */
154#define RC4_INT unsigned int
155#endif
156#if !defined(RC4_CHUNK)
157/*
158 * This enables code handling data aligned at natural CPU word
159 * boundary. See crypto/rc4/rc4_enc.c for further details.
160 */
161#undef RC4_CHUNK
162#endif
163#endif
164
165#if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
166/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
167 * %20 speed up (longs are 8 bytes, int's are 4). */
168#ifndef DES_LONG
169#define DES_LONG unsigned int
170#endif
171#endif
172
173#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
174#define CONFIG_HEADER_BN_H
175#define BN_LLONG
176
177/* Should we define BN_DIV2W here? */
178
179/* Only one for the following should be defined */
180/* The prime number generation stuff may not work when
181 * EIGHT_BIT but I don't care since I've only used this mode
182 * for debuging the bignum libraries */
183#undef SIXTY_FOUR_BIT_LONG
184#undef SIXTY_FOUR_BIT
185#define THIRTY_TWO_BIT
186#undef SIXTEEN_BIT
187#undef EIGHT_BIT
188#endif
189
190#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
191#define CONFIG_HEADER_RC4_LOCL_H
192/* if this is defined data[i] is used instead of *data, this is a %20
193 * speedup on x86 */
194#define RC4_INDEX
195#endif
196
197#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
198#define CONFIG_HEADER_BF_LOCL_H
199#undef BF_PTR
200#endif /* HEADER_BF_LOCL_H */
201
202#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
203#define CONFIG_HEADER_DES_LOCL_H
204#ifndef DES_DEFAULT_OPTIONS
205/* the following is tweaked from a config script, that is why it is a
206 * protected undef/define */
207#ifndef DES_PTR
208#undef DES_PTR
209#endif
210
211/* This helps C compiler generate the correct code for multiple functional
212 * units. It reduces register dependancies at the expense of 2 more
213 * registers */
214#ifndef DES_RISC1
215#undef DES_RISC1
216#endif
217
218#ifndef DES_RISC2
219#undef DES_RISC2
220#endif
221
222#if defined(DES_RISC1) && defined(DES_RISC2)
223YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
224#endif
225
226/* Unroll the inner loop, this sometimes helps, sometimes hinders.
227 * Very mucy CPU dependant */
228#ifndef DES_UNROLL
229#define DES_UNROLL
230#endif
231
232/* These default values were supplied by
233 * Peter Gutman <pgut001@cs.auckland.ac.nz>
234 * They are only used if nothing else has been defined */
235#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
236/* Special defines which change the way the code is built depending on the
237 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
238 even newer MIPS CPU's, but at the moment one size fits all for
239 optimization options. Older Sparc's work better with only UNROLL, but
240 there's no way to tell at compile time what it is you're running on */
241
242#if defined( sun ) /* Newer Sparc's */
243# define DES_PTR
244# define DES_RISC1
245# define DES_UNROLL
246#elif defined( __ultrix ) /* Older MIPS */
247# define DES_PTR
248# define DES_RISC2
249# define DES_UNROLL
250#elif defined( __osf1__ ) /* Alpha */
251# define DES_PTR
252# define DES_RISC2
253#elif defined ( _AIX ) /* RS6000 */
254 /* Unknown */
255#elif defined( __hpux ) /* HP-PA */
256 /* Unknown */
257#elif defined( __aux ) /* 68K */
258 /* Unknown */
259#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
260# define DES_UNROLL
261#elif defined( __sgi ) /* Newer MIPS */
262# define DES_PTR
263# define DES_RISC2
264# define DES_UNROLL
265#elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
266# define DES_PTR
267# define DES_RISC1
268# define DES_UNROLL
269#endif /* Systems-specific speed defines */
270#endif
271
272#endif /* DES_DEFAULT_OPTIONS */
273#endif /* HEADER_DES_LOCL_H */
diff --git a/src/lib/libcrypto/crypto/arch/sparc64/opensslconf.h b/src/lib/libcrypto/crypto/arch/sparc64/opensslconf.h
deleted file mode 100644
index e55282fd63..0000000000
--- a/src/lib/libcrypto/crypto/arch/sparc64/opensslconf.h
+++ /dev/null
@@ -1,273 +0,0 @@
1/* opensslconf.h */
2/* WARNING: Generated automatically from opensslconf.h.in by Configure. */
3
4/* OpenSSL was configured with the following options: */
5#ifndef OPENSSL_DOING_MAKEDEPEND
6
7
8#ifndef OPENSSL_NO_CAMELLIA
9# define OPENSSL_NO_CAMELLIA
10#endif
11#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
12# define OPENSSL_NO_EC_NISTP_64_GCC_128
13#endif
14#ifndef OPENSSL_NO_CMS
15# define OPENSSL_NO_CMS
16#endif
17#ifndef OPENSSL_NO_GMP
18# define OPENSSL_NO_GMP
19#endif
20#ifndef OPENSSL_NO_GOST
21# define OPENSSL_NO_GOST
22#endif
23#ifndef OPENSSL_NO_JPAKE
24# define OPENSSL_NO_JPAKE
25#endif
26#ifndef OPENSSL_NO_KRB5
27# define OPENSSL_NO_KRB5
28#endif
29#ifndef OPENSSL_NO_MD2
30# define OPENSSL_NO_MD2
31#endif
32#ifndef OPENSSL_NO_RC5
33# define OPENSSL_NO_RC5
34#endif
35#ifndef OPENSSL_NO_RFC3779
36# define OPENSSL_NO_RFC3779
37#endif
38#ifndef OPENSSL_NO_SCTP
39# define OPENSSL_NO_SCTP
40#endif
41#ifndef OPENSSL_NO_SEED
42# define OPENSSL_NO_SEED
43#endif
44#ifndef OPENSSL_NO_SRP
45# define OPENSSL_NO_SRP
46#endif
47#ifndef OPENSSL_NO_SSL2
48# define OPENSSL_NO_SSL2
49#endif
50#ifndef OPENSSL_NO_STORE
51# define OPENSSL_NO_STORE
52#endif
53
54#endif /* OPENSSL_DOING_MAKEDEPEND */
55
56#ifndef OPENSSL_THREADS
57# define OPENSSL_THREADS
58#endif
59#ifndef OPENSSL_NO_DYNAMIC_ENGINE
60# define OPENSSL_NO_DYNAMIC_ENGINE
61#endif
62
63/* The OPENSSL_NO_* macros are also defined as NO_* if the application
64 asks for it. This is a transient feature that is provided for those
65 who haven't had the time to do the appropriate changes in their
66 applications. */
67#ifdef OPENSSL_ALGORITHM_DEFINES
68# if defined(OPENSSL_NO_CAMELLIA) && !defined(NO_CAMELLIA)
69# define NO_CAMELLIA
70# endif
71# if defined(OPENSSL_NO_EC_NISTP_64_GCC_128) && !defined(NO_EC_NISTP_64_GCC_128)
72# define NO_EC_NISTP_64_GCC_128
73# endif
74# if defined(OPENSSL_NO_CMS) && !defined(NO_CMS)
75# define NO_CMS
76# endif
77# if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
78# define NO_GMP
79# endif
80# if defined(OPENSSL_NO_GOST) && !defined(NO_GOST)
81# define NO_GOST
82# endif
83# if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
84# define NO_JPAKE
85# endif
86# if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
87# define NO_KRB5
88# endif
89# if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)
90# define NO_MD2
91# endif
92# if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
93# define NO_RC5
94# endif
95# if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
96# define NO_RFC3779
97# endif
98# if defined(OPENSSL_NO_SCTP) && !defined(NO_SCTP)
99# define NO_SCTP
100# endif
101# if defined(OPENSSL_NO_SEED) && !defined(NO_SEED)
102# define NO_SEED
103# endif
104# if defined(OPENSSL_NO_SRP) && !defined(NO_SRP)
105# define NO_SRP
106# endif
107# if defined(OPENSSL_NO_SSL2) && !defined(NO_SSL2)
108# define NO_SSL2
109# endif
110# if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
111# define NO_STORE
112# endif
113#endif
114
115/* crypto/opensslconf.h.in */
116
117/* Generate 80386 code? */
118#undef I386_ONLY
119
120#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
121#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
122#define ENGINESDIR "/usr/lib/engines"
123#define OPENSSLDIR "/etc/ssl"
124#endif
125#endif
126
127#undef OPENSSL_UNISTD
128#define OPENSSL_UNISTD <unistd.h>
129
130#undef OPENSSL_EXPORT_VAR_AS_FUNCTION
131
132#if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
133#define IDEA_INT unsigned int
134#endif
135
136#if defined(HEADER_MD2_H) && !defined(MD2_INT)
137#define MD2_INT unsigned int
138#endif
139
140#if defined(HEADER_RC2_H) && !defined(RC2_INT)
141/* I need to put in a mod for the alpha - eay */
142#define RC2_INT unsigned int
143#endif
144
145#if defined(HEADER_RC4_H)
146#if !defined(RC4_INT)
147/* using int types make the structure larger but make the code faster
148 * on most boxes I have tested - up to %20 faster. */
149/*
150 * I don't know what does "most" mean, but declaring "int" is a must on:
151 * - Intel P6 because partial register stalls are very expensive;
152 * - elder Alpha because it lacks byte load/store instructions;
153 */
154#define RC4_INT unsigned int
155#endif
156#if !defined(RC4_CHUNK)
157/*
158 * This enables code handling data aligned at natural CPU word
159 * boundary. See crypto/rc4/rc4_enc.c for further details.
160 */
161#define RC4_CHUNK unsigned long
162#endif
163#endif
164
165#if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
166/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
167 * %20 speed up (longs are 8 bytes, int's are 4). */
168#ifndef DES_LONG
169#define DES_LONG unsigned int
170#endif
171#endif
172
173#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
174#define CONFIG_HEADER_BN_H
175#undef BN_LLONG
176
177/* Should we define BN_DIV2W here? */
178
179/* Only one for the following should be defined */
180/* The prime number generation stuff may not work when
181 * EIGHT_BIT but I don't care since I've only used this mode
182 * for debuging the bignum libraries */
183#define SIXTY_FOUR_BIT_LONG
184#undef SIXTY_FOUR_BIT
185#undef THIRTY_TWO_BIT
186#undef SIXTEEN_BIT
187#undef EIGHT_BIT
188#endif
189
190#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
191#define CONFIG_HEADER_RC4_LOCL_H
192/* if this is defined data[i] is used instead of *data, this is a %20
193 * speedup on x86 */
194#undef RC4_INDEX
195#endif
196
197#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
198#define CONFIG_HEADER_BF_LOCL_H
199#define BF_PTR
200#endif /* HEADER_BF_LOCL_H */
201
202#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
203#define CONFIG_HEADER_DES_LOCL_H
204#ifndef DES_DEFAULT_OPTIONS
205/* the following is tweaked from a config script, that is why it is a
206 * protected undef/define */
207#ifndef DES_PTR
208#define DES_PTR
209#endif
210
211/* This helps C compiler generate the correct code for multiple functional
212 * units. It reduces register dependancies at the expense of 2 more
213 * registers */
214#ifndef DES_RISC1
215#undef DES_RISC1
216#endif
217
218#ifndef DES_RISC2
219#define DES_RISC2
220#endif
221
222#if defined(DES_RISC1) && defined(DES_RISC2)
223YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
224#endif
225
226/* Unroll the inner loop, this sometimes helps, sometimes hinders.
227 * Very mucy CPU dependant */
228#ifndef DES_UNROLL
229#undef DES_UNROLL
230#endif
231
232/* These default values were supplied by
233 * Peter Gutman <pgut001@cs.auckland.ac.nz>
234 * They are only used if nothing else has been defined */
235#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
236/* Special defines which change the way the code is built depending on the
237 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
238 even newer MIPS CPU's, but at the moment one size fits all for
239 optimization options. Older Sparc's work better with only UNROLL, but
240 there's no way to tell at compile time what it is you're running on */
241
242#if defined( sun ) /* Newer Sparc's */
243# define DES_PTR
244# define DES_RISC1
245# define DES_UNROLL
246#elif defined( __ultrix ) /* Older MIPS */
247# define DES_PTR
248# define DES_RISC2
249# define DES_UNROLL
250#elif defined( __osf1__ ) /* Alpha */
251# define DES_PTR
252# define DES_RISC2
253#elif defined ( _AIX ) /* RS6000 */
254 /* Unknown */
255#elif defined( __hpux ) /* HP-PA */
256 /* Unknown */
257#elif defined( __aux ) /* 68K */
258 /* Unknown */
259#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
260# define DES_UNROLL
261#elif defined( __sgi ) /* Newer MIPS */
262# define DES_PTR
263# define DES_RISC2
264# define DES_UNROLL
265#elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
266# define DES_PTR
267# define DES_RISC1
268# define DES_UNROLL
269#endif /* Systems-specific speed defines */
270#endif
271
272#endif /* DES_DEFAULT_OPTIONS */
273#endif /* HEADER_DES_LOCL_H */
diff --git a/src/lib/libcrypto/crypto/arch/vax/bn_asm_vax.S b/src/lib/libcrypto/crypto/arch/vax/bn_asm_vax.S
deleted file mode 100644
index 2969ae9dac..0000000000
--- a/src/lib/libcrypto/crypto/arch/vax/bn_asm_vax.S
+++ /dev/null
@@ -1,436 +0,0 @@
1# $OpenBSD: bn_asm_vax.S,v 1.1 2014/04/11 22:51:53 miod Exp $
2# $NetBSD: bn_asm_vax.S,v 1.1 2003/11/03 10:22:28 ragge Exp $
3
4#include <machine/asm.h>
5
6# w.j.m. 15-jan-1999
7#
8# it's magic ...
9#
10# ULONG bn_mul_add_words(ULONG r[],ULONG a[],int n,ULONG w) {
11# ULONG c = 0;
12# int i;
13# for(i = 0; i < n; i++) <c,r[i]> := r[i] + c + a[i] * w ;
14# return c;
15# }
16
17ENTRY(bn_mul_add_words,R6)
18 movl 4(%ap),%r2 # *r
19 movl 8(%ap),%r3 # *a
20 movl 12(%ap),%r4 # n
21 movl 16(%ap),%r5 # w
22 clrl %r6 # return value ("carry")
23
240: emul %r5,(%r3),(%r2),%r0 # w * a[0] + r[0] -> r0
25
26 # fixup for "negative" r[]
27 tstl (%r2)
28 bgeq 1f
29 incl %r1 # add 1 to highword
30
311: # add saved carry to result
32 addl2 %r6,%r0
33 adwc $0,%r1
34
35 # combined fixup for "negative" w, a[]
36 tstl %r5 # if w is negative...
37 bgeq 1f
38 addl2 (%r3),%r1 # ...add a[0] again to highword
391: tstl (%r3) # if a[0] is negative...
40 bgeq 1f
41 addl2 %r5,%r1 # ...add w again to highword
421:
43 movl %r0,(%r2)+ # save low word in dest & advance *r
44 addl2 $4,%r3 # advance *a
45 movl %r1,%r6 # high word in r6 for return value
46
47 sobgtr %r4,0b # loop?
48
49 movl %r6,%r0
50 ret
51
52# .title vax_bn_mul_words unsigned multiply & add, 32*32+32=>64
53#;
54#; w.j.m. 15-jan-1999
55#;
56#; it's magic ...
57#;
58#; ULONG bn_mul_words(ULONG r[],ULONG a[],int n,ULONG w) {
59#; ULONG c = 0;
60#; int i;
61#; for(i = 0; i < num; i++) <c,r[i]> := a[i] * w + c ;
62#; return(c);
63#; }
64#
65
66ENTRY(bn_mul_words,R6)
67 movl 4(%ap),%r2 # *r
68 movl 8(%ap),%r3 # *a
69 movl 12(%ap),%r4 # n
70 movl 16(%ap),%r5 # w
71 clrl %r6 # carry
72
730: emul %r5,(%r3),%r6,%r0 # w * a[0] + carry -> r0
74
75 # fixup for "negative" carry
76 tstl %r6
77 bgeq 1f
78 incl %r1
79
801: # combined fixup for "negative" w, a[]
81 tstl %r5
82 bgeq 1f
83 addl2 (%r3),%r1
841: tstl (%r3)
85 bgeq 1f
86 addl2 %r5,%r1
87
881: movl %r0,(%r2)+
89 addl2 $4,%r3
90 movl %r1,%r6
91
92 sobgtr %r4,0b
93
94 movl %r6,%r0
95 ret
96
97
98
99# .title vax_bn_sqr_words unsigned square, 32*32=>64
100#;
101#; w.j.m. 15-jan-1999
102#;
103#; it's magic ...
104#;
105#; void bn_sqr_words(ULONG r[],ULONG a[],int n) {
106#; int i;
107#; for(i = 0; i < n; i++) <r[2*i+1],r[2*i]> := a[i] * a[i] ;
108#; }
109#
110
111ENTRY(bn_sqr_words,0)
112 movl 4(%ap),%r2 # r
113 movl 8(%ap),%r3 # a
114 movl 12(%ap),%r4 # n
115
1160: movl (%r3)+,%r5 # r5 = a[] & advance
117
118 emul %r5,%r5,$0,%r0 # a[0] * a[0] + 0 -> r0
119
120 # fixup for "negative" a[]
121 tstl %r5
122 bgeq 1f
123 addl2 %r5,%r1
124 addl2 %r5,%r1
125
1261: movq %r0,(%r2)+ # store 64-bit result
127
128 sobgtr %r4,0b # loop
129
130 ret
131
132
133# .title vax_bn_div_words unsigned divide
134#;
135#; Richard Levitte 20-Nov-2000
136#;
137#; ULONG bn_div_words(ULONG h, ULONG l, ULONG d)
138#; {
139#; return ((ULONG)((((ULLONG)h)<<32)|l) / (ULLONG)d);
140#; }
141#;
142#; Using EDIV would be very easy, if it didn't do signed calculations.
143#; Any time any of the input numbers are signed, there are problems,
144#; usually with integer overflow, at which point it returns useless
145#; data (the quotient gets the value of l, and the remainder becomes 0).
146#;
147#; If it was just for the dividend, it would be very easy, just divide
148#; it by 2 (unsigned), do the division, multiply the resulting quotient
149#; and remainder by 2, add the bit that was dropped when dividing by 2
150#; to the remainder, and do some adjustment so the remainder doesn't
151#; end up larger than the divisor. For some cases when the divisor is
152#; negative (from EDIV's point of view, i.e. when the highest bit is set),
153#; dividing the dividend by 2 isn't enough, and since some operations
154#; might generate integer overflows even when the dividend is divided by
155#; 4 (when the high part of the shifted down dividend ends up being exactly
156#; half of the divisor, the result is the quotient 0x80000000, which is
157#; negative...) it needs to be divided by 8. Furthermore, the divisor needs
158#; to be divided by 2 (unsigned) as well, to avoid more problems with the sign.
159#; In this case, a little extra fiddling with the remainder is required.
160#;
161#; So, the simplest way to handle this is always to divide the dividend
162#; by 8, and to divide the divisor by 2 if it's highest bit is set.
163#; After EDIV has been used, the quotient gets multiplied by 8 if the
164#; original divisor was positive, otherwise 4. The remainder, oddly
165#; enough, is *always* multiplied by 8.
166#; NOTE: in the case mentioned above, where the high part of the shifted
167#; down dividend ends up being exactly half the shifted down divisor, we
168#; end up with a 33 bit quotient. That's no problem however, it usually
169#; means we have ended up with a too large remainder as well, and the
170#; problem is fixed by the last part of the algorithm (next paragraph).
171#;
172#; The routine ends with comparing the resulting remainder with the
173#; original divisor and if the remainder is larger, subtract the
174#; original divisor from it, and increase the quotient by 1. This is
175#; done until the remainder is smaller than the divisor.
176#;
177#; The complete algorithm looks like this:
178#;
179#; d' = d
180#; l' = l & 7
181#; [h,l] = [h,l] >> 3
182#; [q,r] = floor([h,l] / d) # This is the EDIV operation
183#; if (q < 0) q = -q # I doubt this is necessary any more
184#;
185#; r' = r >> 29
186#; if (d' >= 0)
187#; q' = q >> 29
188#; q = q << 3
189#; else
190#; q' = q >> 30
191#; q = q << 2
192#; r = (r << 3) + l'
193#;
194#; if (d' < 0)
195#; {
196#; [r',r] = [r',r] - q
197#; while ([r',r] < 0)
198#; {
199#; [r',r] = [r',r] + d
200#; [q',q] = [q',q] - 1
201#; }
202#; }
203#;
204#; while ([r',r] >= d')
205#; {
206#; [r',r] = [r',r] - d'
207#; [q',q] = [q',q] + 1
208#; }
209#;
210#; return q
211#
212#;r2 = l, q
213#;r3 = h, r
214#;r4 = d
215#;r5 = l'
216#;r6 = r'
217#;r7 = d'
218#;r8 = q'
219#
220
221ENTRY(bn_div_words,R6|R7|R8)
222 movl 4(%ap),%r3 # h
223 movl 8(%ap),%r2 # l
224 movl 12(%ap),%r4 # d
225
226 bicl3 $-8,%r2,%r5 # l' = l & 7
227 bicl3 $7,%r2,%r2
228
229 bicl3 $-8,%r3,%r6
230 bicl3 $7,%r3,%r3
231
232 addl2 %r6,%r2
233
234 rotl $-3,%r2,%r2 # l = l >> 3
235 rotl $-3,%r3,%r3 # h = h >> 3
236
237 movl %r4,%r7 # d' = d
238
239 clrl %r6 # r' = 0
240 clrl %r8 # q' = 0
241
242 tstl %r4
243 beql 0f # Uh-oh, the divisor is 0...
244 bgtr 1f
245 rotl $-1,%r4,%r4 # If d is negative, shift it right.
246 bicl2 $0x80000000,%r4 # Since d is then a large number, the
247 # lowest bit is insignificant
248 # (contradict that, and I'll fix the problem!)
2491:
250 ediv %r4,%r2,%r2,%r3 # Do the actual division
251
252 tstl %r2
253 bgeq 1f
254 mnegl %r2,%r2 # if q < 0, negate it
2551:
256 tstl %r7
257 blss 1f
258 rotl $3,%r2,%r2 # q = q << 3
259 bicl3 $-8,%r2,%r8 # q' gets the high bits from q
260 bicl3 $7,%r2,%r2
261 brb 2f
262
2631: # else
264 rotl $2,%r2,%r2 # q = q << 2
265 bicl3 $-4,%r2,%r8 # q' gets the high bits from q
266 bicl3 $3,%r2,%r2
2672:
268 rotl $3,%r3,%r3 # r = r << 3
269 bicl3 $-8,%r3,%r6 # r' gets the high bits from r
270 bicl3 $7,%r3,%r3
271 addl2 %r5,%r3 # r = r + l'
272
273 tstl %r7
274 bgeq 5f
275 bitl $1,%r7
276 beql 5f # if d' < 0 && d' & 1
277 subl2 %r2,%r3 # [r',r] = [r',r] - [q',q]
278 sbwc %r8,%r6
2793:
280 bgeq 5f # while r < 0
281 decl %r2 # [q',q] = [q',q] - 1
282 sbwc $0,%r8
283 addl2 %r7,%r3 # [r',r] = [r',r] + d'
284 adwc $0,%r6
285 brb 3b
286
287# The return points are placed in the middle to keep a short distance from
288# all the branch points
2891:
290# movl %r3,%r1
291 movl %r2,%r0
292 ret
2930:
294 movl $-1,%r0
295 ret
2965:
297 tstl %r6
298 bneq 6f
299 cmpl %r3,%r7
300 blssu 1b # while [r',r] >= d'
3016:
302 subl2 %r7,%r3 # [r',r] = [r',r] - d'
303 sbwc $0,%r6
304 incl %r2 # [q',q] = [q',q] + 1
305 adwc $0,%r8
306 brb 5b
307
308
309
310# .title vax_bn_add_words unsigned add of two arrays
311#;
312#; Richard Levitte 20-Nov-2000
313#;
314#; ULONG bn_add_words(ULONG r[], ULONG a[], ULONG b[], int n) {
315#; ULONG c = 0;
316#; int i;
317#; for (i = 0; i < n; i++) <c,r[i]> = a[i] + b[i] + c;
318#; return(c);
319#; }
320#
321
322ENTRY(bn_add_words,0)
323 movl 4(%ap),%r2 # r
324 movl 8(%ap),%r3 # a
325 movl 12(%ap),%r4 # b
326 movl 16(%ap),%r5 # n
327 clrl %r0
328
329 tstl %r5
330 bleq 1f
331
3320: movl (%r3)+,%r1 # carry untouched
333 adwc (%r4)+,%r1 # carry used and touched
334 movl %r1,(%r2)+ # carry untouched
335 sobgtr %r5,0b # carry untouched
336
337 adwc $0,%r0
3381: ret
339
340#;
341#; Richard Levitte 20-Nov-2000
342#;
343#; ULONG bn_sub_words(ULONG r[], ULONG a[], ULONG b[], int n) {
344#; ULONG c = 0;
345#; int i;
346#; for (i = 0; i < n; i++) <c,r[i]> = a[i] - b[i] - c;
347#; return(c);
348#; }
349#
350
351ENTRY(bn_sub_words,R6)
352 movl 4(%ap),%r2 # r
353 movl 8(%ap),%r3 # a
354 movl 12(%ap),%r4 # b
355 movl 16(%ap),%r5 # n
356 clrl %r0
357
358 tstl %r5
359 bleq 1f
360
3610: movl (%r3)+,%r6 # carry untouched
362 sbwc (%r4)+,%r6 # carry used and touched
363 movl %r6,(%r2)+ # carry untouched
364 sobgtr %r5,0b # carry untouched
365
3661: adwc $0,%r0
367 ret
368
369#
370# Ragge 20-Sep-2003
371#
372# Multiply a vector of 4/8 longword by another.
373# Uses two loops and 16/64 emuls.
374#
375
376ENTRY(bn_mul_comba4,R6|R7|R8|R9)
377 movl $4,%r9 # 4*4
378 brb 6f
379
380ENTRY(bn_mul_comba8,R6|R7|R8|R9)
381 movl $8,%r9 # 8*8
382
3836: movl 8(%ap),%r3 # a[]
384 movl 12(%ap),%r7 # b[]
385 brb 5f
386
387ENTRY(bn_sqr_comba4,R6|R7|R8|R9)
388 movl $4,%r9 # 4*4
389 brb 0f
390
391ENTRY(bn_sqr_comba8,R6|R7|R8|R9)
392 movl $8,%r9 # 8*8
393
3940:
395 movl 8(%ap),%r3 # a[]
396 movl %r3,%r7 # a[]
397
3985: movl 4(%ap),%r5 # r[]
399 movl %r9,%r8
400
401 clrq (%r5) # clear destinatino, for add.
402 clrq 8(%r5)
403 clrq 16(%r5) # these only needed for comba8
404 clrq 24(%r5)
405
4062: clrl %r4 # carry
407 movl %r9,%r6 # inner loop count
408 movl (%r7)+,%r2 # value to multiply with
409
4101: emul %r2,(%r3),%r4,%r0
411 tstl %r4
412 bgeq 3f
413 incl %r1
4143: tstl %r2
415 bgeq 3f
416 addl2 (%r3),%r1
4173: tstl (%r3)
418 bgeq 3f
419 addl2 %r2,%r1
420
4213: addl2 %r0,(%r5)+ # add to destination
422 adwc $0,%r1 # remember carry
423 movl %r1,%r4 # add carry in next emul
424 addl2 $4,%r3
425 sobgtr %r6,1b
426
427 movl %r4,(%r5) # save highest add result
428
429 ashl $2,%r9,%r4
430 subl2 %r4,%r3
431 subl2 $4,%r4
432 subl2 %r4,%r5
433
434 sobgtr %r8,2b
435
436 ret
diff --git a/src/lib/libcrypto/crypto/arch/vax/opensslconf.h b/src/lib/libcrypto/crypto/arch/vax/opensslconf.h
deleted file mode 100644
index fc5ea38470..0000000000
--- a/src/lib/libcrypto/crypto/arch/vax/opensslconf.h
+++ /dev/null
@@ -1,273 +0,0 @@
1/* opensslconf.h */
2/* WARNING: Generated automatically from opensslconf.h.in by Configure. */
3
4/* OpenSSL was configured with the following options: */
5#ifndef OPENSSL_DOING_MAKEDEPEND
6
7
8#ifndef OPENSSL_NO_CAMELLIA
9# define OPENSSL_NO_CAMELLIA
10#endif
11#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
12# define OPENSSL_NO_EC_NISTP_64_GCC_128
13#endif
14#ifndef OPENSSL_NO_CMS
15# define OPENSSL_NO_CMS
16#endif
17#ifndef OPENSSL_NO_GMP
18# define OPENSSL_NO_GMP
19#endif
20#ifndef OPENSSL_NO_GOST
21# define OPENSSL_NO_GOST
22#endif
23#ifndef OPENSSL_NO_JPAKE
24# define OPENSSL_NO_JPAKE
25#endif
26#ifndef OPENSSL_NO_KRB5
27# define OPENSSL_NO_KRB5
28#endif
29#ifndef OPENSSL_NO_MD2
30# define OPENSSL_NO_MD2
31#endif
32#ifndef OPENSSL_NO_RC5
33# define OPENSSL_NO_RC5
34#endif
35#ifndef OPENSSL_NO_RFC3779
36# define OPENSSL_NO_RFC3779
37#endif
38#ifndef OPENSSL_NO_SCTP
39# define OPENSSL_NO_SCTP
40#endif
41#ifndef OPENSSL_NO_SEED
42# define OPENSSL_NO_SEED
43#endif
44#ifndef OPENSSL_NO_SRP
45# define OPENSSL_NO_SRP
46#endif
47#ifndef OPENSSL_NO_SSL2
48# define OPENSSL_NO_SSL2
49#endif
50#ifndef OPENSSL_NO_STORE
51# define OPENSSL_NO_STORE
52#endif
53
54#endif /* OPENSSL_DOING_MAKEDEPEND */
55
56#ifndef OPENSSL_THREADS
57# define OPENSSL_THREADS
58#endif
59#ifndef OPENSSL_NO_DYNAMIC_ENGINE
60# define OPENSSL_NO_DYNAMIC_ENGINE
61#endif
62
63/* The OPENSSL_NO_* macros are also defined as NO_* if the application
64 asks for it. This is a transient feature that is provided for those
65 who haven't had the time to do the appropriate changes in their
66 applications. */
67#ifdef OPENSSL_ALGORITHM_DEFINES
68# if defined(OPENSSL_NO_CAMELLIA) && !defined(NO_CAMELLIA)
69# define NO_CAMELLIA
70# endif
71# if defined(OPENSSL_NO_EC_NISTP_64_GCC_128) && !defined(NO_EC_NISTP_64_GCC_128)
72# define NO_EC_NISTP_64_GCC_128
73# endif
74# if defined(OPENSSL_NO_CMS) && !defined(NO_CMS)
75# define NO_CMS
76# endif
77# if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
78# define NO_GMP
79# endif
80# if defined(OPENSSL_NO_GOST) && !defined(NO_GOST)
81# define NO_GOST
82# endif
83# if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
84# define NO_JPAKE
85# endif
86# if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
87# define NO_KRB5
88# endif
89# if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)
90# define NO_MD2
91# endif
92# if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
93# define NO_RC5
94# endif
95# if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
96# define NO_RFC3779
97# endif
98# if defined(OPENSSL_NO_SCTP) && !defined(NO_SCTP)
99# define NO_SCTP
100# endif
101# if defined(OPENSSL_NO_SEED) && !defined(NO_SEED)
102# define NO_SEED
103# endif
104# if defined(OPENSSL_NO_SRP) && !defined(NO_SRP)
105# define NO_SRP
106# endif
107# if defined(OPENSSL_NO_SSL2) && !defined(NO_SSL2)
108# define NO_SSL2
109# endif
110# if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
111# define NO_STORE
112# endif
113#endif
114
115/* crypto/opensslconf.h.in */
116
117/* Generate 80386 code? */
118#undef I386_ONLY
119
120#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
121#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
122#define ENGINESDIR "/usr/lib/engines"
123#define OPENSSLDIR "/etc/ssl"
124#endif
125#endif
126
127#undef OPENSSL_UNISTD
128#define OPENSSL_UNISTD <unistd.h>
129
130#undef OPENSSL_EXPORT_VAR_AS_FUNCTION
131
132#if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
133#define IDEA_INT unsigned int
134#endif
135
136#if defined(HEADER_MD2_H) && !defined(MD2_INT)
137#define MD2_INT unsigned int
138#endif
139
140#if defined(HEADER_RC2_H) && !defined(RC2_INT)
141/* I need to put in a mod for the alpha - eay */
142#define RC2_INT unsigned int
143#endif
144
145#if defined(HEADER_RC4_H)
146#if !defined(RC4_INT)
147/* using int types make the structure larger but make the code faster
148 * on most boxes I have tested - up to %20 faster. */
149/*
150 * I don't know what does "most" mean, but declaring "int" is a must on:
151 * - Intel P6 because partial register stalls are very expensive;
152 * - elder Alpha because it lacks byte load/store instructions;
153 */
154#define RC4_INT unsigned int
155#endif
156#if !defined(RC4_CHUNK)
157/*
158 * This enables code handling data aligned at natural CPU word
159 * boundary. See crypto/rc4/rc4_enc.c for further details.
160 */
161#undef RC4_CHUNK
162#endif
163#endif
164
165#if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
166/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
167 * %20 speed up (longs are 8 bytes, int's are 4). */
168#ifndef DES_LONG
169#define DES_LONG unsigned int
170#endif
171#endif
172
173#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
174#define CONFIG_HEADER_BN_H
175#define BN_LLONG
176
177/* Should we define BN_DIV2W here? */
178
179/* Only one for the following should be defined */
180/* The prime number generation stuff may not work when
181 * EIGHT_BIT but I don't care since I've only used this mode
182 * for debuging the bignum libraries */
183#undef SIXTY_FOUR_BIT_LONG
184#undef SIXTY_FOUR_BIT
185#define THIRTY_TWO_BIT
186#undef SIXTEEN_BIT
187#undef EIGHT_BIT
188#endif
189
190#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
191#define CONFIG_HEADER_RC4_LOCL_H
192/* if this is defined data[i] is used instead of *data, this is a %20
193 * speedup on x86 */
194#define RC4_INDEX
195#endif
196
197#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
198#define CONFIG_HEADER_BF_LOCL_H
199#undef BF_PTR
200#endif /* HEADER_BF_LOCL_H */
201
202#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
203#define CONFIG_HEADER_DES_LOCL_H
204#ifndef DES_DEFAULT_OPTIONS
205/* the following is tweaked from a config script, that is why it is a
206 * protected undef/define */
207#ifndef DES_PTR
208#undef DES_PTR
209#endif
210
211/* This helps C compiler generate the correct code for multiple functional
212 * units. It reduces register dependancies at the expense of 2 more
213 * registers */
214#ifndef DES_RISC1
215#undef DES_RISC1
216#endif
217
218#ifndef DES_RISC2
219#undef DES_RISC2
220#endif
221
222#if defined(DES_RISC1) && defined(DES_RISC2)
223YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
224#endif
225
226/* Unroll the inner loop, this sometimes helps, sometimes hinders.
227 * Very mucy CPU dependant */
228#ifndef DES_UNROLL
229#define DES_UNROLL
230#endif
231
232/* These default values were supplied by
233 * Peter Gutman <pgut001@cs.auckland.ac.nz>
234 * They are only used if nothing else has been defined */
235#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
236/* Special defines which change the way the code is built depending on the
237 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
238 even newer MIPS CPU's, but at the moment one size fits all for
239 optimization options. Older Sparc's work better with only UNROLL, but
240 there's no way to tell at compile time what it is you're running on */
241
242#if defined( sun ) /* Newer Sparc's */
243# define DES_PTR
244# define DES_RISC1
245# define DES_UNROLL
246#elif defined( __ultrix ) /* Older MIPS */
247# define DES_PTR
248# define DES_RISC2
249# define DES_UNROLL
250#elif defined( __osf1__ ) /* Alpha */
251# define DES_PTR
252# define DES_RISC2
253#elif defined ( _AIX ) /* RS6000 */
254 /* Unknown */
255#elif defined( __hpux ) /* HP-PA */
256 /* Unknown */
257#elif defined( __aux ) /* 68K */
258 /* Unknown */
259#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
260# define DES_UNROLL
261#elif defined( __sgi ) /* Newer MIPS */
262# define DES_PTR
263# define DES_RISC2
264# define DES_UNROLL
265#elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
266# define DES_PTR
267# define DES_RISC1
268# define DES_UNROLL
269#endif /* Systems-specific speed defines */
270#endif
271
272#endif /* DES_DEFAULT_OPTIONS */
273#endif /* HEADER_DES_LOCL_H */
diff --git a/src/lib/libcrypto/crypto/shlib_version b/src/lib/libcrypto/crypto/shlib_version
deleted file mode 100644
index 83b2480206..0000000000
--- a/src/lib/libcrypto/crypto/shlib_version
+++ /dev/null
@@ -1,2 +0,0 @@
1major=21
2minor=0