1*b9351927Stb /* $OpenBSD: stack_local.h,v 1.1 2024/03/02 11:11:11 tb Exp $ */ 2*b9351927Stb /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 3*b9351927Stb * All rights reserved. 4*b9351927Stb * 5*b9351927Stb * This package is an SSL implementation written 6*b9351927Stb * by Eric Young (eay@cryptsoft.com). 7*b9351927Stb * The implementation was written so as to conform with Netscapes SSL. 8*b9351927Stb * 9*b9351927Stb * This library is free for commercial and non-commercial use as long as 10*b9351927Stb * the following conditions are aheared to. The following conditions 11*b9351927Stb * apply to all code found in this distribution, be it the RC4, RSA, 12*b9351927Stb * lhash, DES, etc., code; not just the SSL code. The SSL documentation 13*b9351927Stb * included with this distribution is covered by the same copyright terms 14*b9351927Stb * except that the holder is Tim Hudson (tjh@cryptsoft.com). 15*b9351927Stb * 16*b9351927Stb * Copyright remains Eric Young's, and as such any Copyright notices in 17*b9351927Stb * the code are not to be removed. 18*b9351927Stb * If this package is used in a product, Eric Young should be given attribution 19*b9351927Stb * as the author of the parts of the library used. 20*b9351927Stb * This can be in the form of a textual message at program startup or 21*b9351927Stb * in documentation (online or textual) provided with the package. 22*b9351927Stb * 23*b9351927Stb * Redistribution and use in source and binary forms, with or without 24*b9351927Stb * modification, are permitted provided that the following conditions 25*b9351927Stb * are met: 26*b9351927Stb * 1. Redistributions of source code must retain the copyright 27*b9351927Stb * notice, this list of conditions and the following disclaimer. 28*b9351927Stb * 2. Redistributions in binary form must reproduce the above copyright 29*b9351927Stb * notice, this list of conditions and the following disclaimer in the 30*b9351927Stb * documentation and/or other materials provided with the distribution. 31*b9351927Stb * 3. All advertising materials mentioning features or use of this software 32*b9351927Stb * must display the following acknowledgement: 33*b9351927Stb * "This product includes cryptographic software written by 34*b9351927Stb * Eric Young (eay@cryptsoft.com)" 35*b9351927Stb * The word 'cryptographic' can be left out if the rouines from the library 36*b9351927Stb * being used are not cryptographic related :-). 37*b9351927Stb * 4. If you include any Windows specific code (or a derivative thereof) from 38*b9351927Stb * the apps directory (application code) you must include an acknowledgement: 39*b9351927Stb * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" 40*b9351927Stb * 41*b9351927Stb * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND 42*b9351927Stb * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 43*b9351927Stb * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 44*b9351927Stb * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 45*b9351927Stb * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 46*b9351927Stb * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 47*b9351927Stb * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 48*b9351927Stb * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 49*b9351927Stb * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 50*b9351927Stb * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 51*b9351927Stb * SUCH DAMAGE. 52*b9351927Stb * 53*b9351927Stb * The licence and distribution terms for any publically available version or 54*b9351927Stb * derivative of this code cannot be changed. i.e. this code cannot simply be 55*b9351927Stb * copied and put under another distribution licence 56*b9351927Stb * [including the GNU Public Licence.] 57*b9351927Stb */ 58*b9351927Stb 59*b9351927Stb #ifndef HEADER_STACK_LOCAL_H 60*b9351927Stb #define HEADER_STACK_LOCAL_H 61*b9351927Stb 62*b9351927Stb struct stack_st { 63*b9351927Stb int num; 64*b9351927Stb char **data; 65*b9351927Stb int sorted; 66*b9351927Stb 67*b9351927Stb int num_alloc; 68*b9351927Stb int (*comp)(const void *, const void *); 69*b9351927Stb } /* _STACK */; 70*b9351927Stb 71*b9351927Stb #endif 72