Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(421)

Side by Side Diff: openssl/crypto/txt_db/txt_db.h

Issue 9254031: Upgrade chrome's OpenSSL to same version Android ships with. (Closed) Base URL: http://src.chromium.org/svn/trunk/deps/third_party/openssl/
Patch Set: '' Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « openssl/crypto/txt_db/Makefile ('k') | openssl/crypto/txt_db/txt_db.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* crypto/txt_db/txt_db.h */ 1 /* crypto/txt_db/txt_db.h */
2 /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2 /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
5 * This package is an SSL implementation written 5 * This package is an SSL implementation written
6 * by Eric Young (eay@cryptsoft.com). 6 * by Eric Young (eay@cryptsoft.com).
7 * The implementation was written so as to conform with Netscapes SSL. 7 * The implementation was written so as to conform with Netscapes SSL.
8 * 8 *
9 * This library is free for commercial and non-commercial use as long as 9 * This library is free for commercial and non-commercial use as long as
10 * the following conditions are aheared to. The following conditions 10 * the following conditions are aheared to. The following conditions
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 #define DB_ERROR_MALLOC 1 70 #define DB_ERROR_MALLOC 1
71 #define DB_ERROR_INDEX_CLASH 2 71 #define DB_ERROR_INDEX_CLASH 2
72 #define DB_ERROR_INDEX_OUT_OF_RANGE 3 72 #define DB_ERROR_INDEX_OUT_OF_RANGE 3
73 #define DB_ERROR_NO_INDEX 4 73 #define DB_ERROR_NO_INDEX 4
74 #define DB_ERROR_INSERT_INDEX_CLASH 5 74 #define DB_ERROR_INSERT_INDEX_CLASH 5
75 75
76 #ifdef __cplusplus 76 #ifdef __cplusplus
77 extern "C" { 77 extern "C" {
78 #endif 78 #endif
79 79
80 typedef OPENSSL_STRING *OPENSSL_PSTRING;
81 DECLARE_SPECIAL_STACK_OF(OPENSSL_PSTRING, OPENSSL_STRING)
82
80 typedef struct txt_db_st 83 typedef struct txt_db_st
81 { 84 {
82 int num_fields; 85 int num_fields;
83 » STACK /* char ** */ *data; 86 » STACK_OF(OPENSSL_PSTRING) *data;
84 » LHASH **index; 87 » LHASH_OF(OPENSSL_STRING) **index;
85 » int (**qual)(char **); 88 » int (**qual)(OPENSSL_STRING *);
86 long error; 89 long error;
87 long arg1; 90 long arg1;
88 long arg2; 91 long arg2;
89 » char **arg_row; 92 » OPENSSL_STRING *arg_row;
90 } TXT_DB; 93 } TXT_DB;
91 94
92 #ifndef OPENSSL_NO_BIO 95 #ifndef OPENSSL_NO_BIO
93 TXT_DB *TXT_DB_read(BIO *in, int num); 96 TXT_DB *TXT_DB_read(BIO *in, int num);
94 long TXT_DB_write(BIO *out, TXT_DB *db); 97 long TXT_DB_write(BIO *out, TXT_DB *db);
95 #else 98 #else
96 TXT_DB *TXT_DB_read(char *in, int num); 99 TXT_DB *TXT_DB_read(char *in, int num);
97 long TXT_DB_write(char *out, TXT_DB *db); 100 long TXT_DB_write(char *out, TXT_DB *db);
98 #endif 101 #endif
99 int TXT_DB_create_index(TXT_DB *db,int field,int (*qual)(char **), 102 int TXT_DB_create_index(TXT_DB *db,int field,int (*qual)(OPENSSL_STRING *),
100 » » LHASH_HASH_FN_TYPE hash, LHASH_COMP_FN_TYPE cmp); 103 » » » LHASH_HASH_FN_TYPE hash, LHASH_COMP_FN_TYPE cmp);
101 void TXT_DB_free(TXT_DB *db); 104 void TXT_DB_free(TXT_DB *db);
102 char **TXT_DB_get_by_index(TXT_DB *db, int idx, char **value); 105 OPENSSL_STRING *TXT_DB_get_by_index(TXT_DB *db, int idx, OPENSSL_STRING *value);
103 int TXT_DB_insert(TXT_DB *db,char **value); 106 int TXT_DB_insert(TXT_DB *db, OPENSSL_STRING *value);
104 107
105 #ifdef __cplusplus 108 #ifdef __cplusplus
106 } 109 }
107 #endif 110 #endif
108 111
109 #endif 112 #endif
OLDNEW
« no previous file with comments | « openssl/crypto/txt_db/Makefile ('k') | openssl/crypto/txt_db/txt_db.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698