source: EcnlProtoTool/trunk/openssl-1.1.0e/include/openssl/txt_db.h@ 331

Last change on this file since 331 was 331, checked in by coas-nagasima, 6 years ago

prototoolに関連するプロジェクトをnewlibからmuslを使うよう変更・更新
ntshellをnewlibの下位の実装から、muslのsyscallの実装に変更・更新
以下のOSSをアップデート
・mruby-1.3.0
・musl-1.1.18
・onigmo-6.1.3
・tcc-0.9.27
以下のOSSを追加
・openssl-1.1.0e
・curl-7.57.0
・zlib-1.2.11
以下のmrbgemsを追加
・iij/mruby-digest
・iij/mruby-env
・iij/mruby-errno
・iij/mruby-iijson
・iij/mruby-ipaddr
・iij/mruby-mock
・iij/mruby-require
・iij/mruby-tls-openssl

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-chdr
File size: 1.6 KB
Line 
1/*
2 * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
3 *
4 * Licensed under the OpenSSL license (the "License"). You may not use
5 * this file except in compliance with the License. You can obtain a copy
6 * in the file LICENSE in the source distribution or at
7 * https://www.openssl.org/source/license.html
8 */
9
10#ifndef HEADER_TXT_DB_H
11# define HEADER_TXT_DB_H
12
13# include <openssl/opensslconf.h>
14# include <openssl/bio.h>
15# include <openssl/stack.h>
16# include <openssl/lhash.h>
17
18# define DB_ERROR_OK 0
19# define DB_ERROR_MALLOC 1
20# define DB_ERROR_INDEX_CLASH 2
21# define DB_ERROR_INDEX_OUT_OF_RANGE 3
22# define DB_ERROR_NO_INDEX 4
23# define DB_ERROR_INSERT_INDEX_CLASH 5
24# define DB_ERROR_WRONG_NUM_FIELDS 6
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
30typedef OPENSSL_STRING *OPENSSL_PSTRING;
31DEFINE_SPECIAL_STACK_OF(OPENSSL_PSTRING, OPENSSL_STRING)
32
33typedef struct txt_db_st {
34 int num_fields;
35 STACK_OF(OPENSSL_PSTRING) *data;
36 LHASH_OF(OPENSSL_STRING) **index;
37 int (**qual) (OPENSSL_STRING *);
38 long error;
39 long arg1;
40 long arg2;
41 OPENSSL_STRING *arg_row;
42} TXT_DB;
43
44TXT_DB *TXT_DB_read(BIO *in, int num);
45long TXT_DB_write(BIO *out, TXT_DB *db);
46int TXT_DB_create_index(TXT_DB *db, int field, int (*qual) (OPENSSL_STRING *),
47 OPENSSL_LH_HASHFUNC hash, OPENSSL_LH_COMPFUNC cmp);
48void TXT_DB_free(TXT_DB *db);
49OPENSSL_STRING *TXT_DB_get_by_index(TXT_DB *db, int idx,
50 OPENSSL_STRING *value);
51int TXT_DB_insert(TXT_DB *db, OPENSSL_STRING *value);
52
53#ifdef __cplusplus
54}
55#endif
56
57#endif
Note: See TracBrowser for help on using the repository browser.