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

Side by Side Diff: openssl/crypto/buffer/buffer.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/buffer/buf_str.c ('k') | openssl/crypto/buffer/buffer.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/buffer/buffer.h */ 1 /* crypto/buffer/buffer.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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 69
70 #if !defined(NO_SYS_TYPES_H) 70 #if !defined(NO_SYS_TYPES_H)
71 #include <sys/types.h> 71 #include <sys/types.h>
72 #endif 72 #endif
73 73
74 /* Already declared in ossl_typ.h */ 74 /* Already declared in ossl_typ.h */
75 /* typedef struct buf_mem_st BUF_MEM; */ 75 /* typedef struct buf_mem_st BUF_MEM; */
76 76
77 struct buf_mem_st 77 struct buf_mem_st
78 { 78 {
79 » int length;» /* current number of bytes */ 79 » size_t length;» /* current number of bytes */
80 char *data; 80 char *data;
81 » int max;» /* size of buffer */ 81 » size_t max;» /* size of buffer */
82 }; 82 };
83 83
84 BUF_MEM *BUF_MEM_new(void); 84 BUF_MEM *BUF_MEM_new(void);
85 void BUF_MEM_free(BUF_MEM *a); 85 void BUF_MEM_free(BUF_MEM *a);
86 int» BUF_MEM_grow(BUF_MEM *str, int len); 86 int» BUF_MEM_grow(BUF_MEM *str, size_t len);
87 int» BUF_MEM_grow_clean(BUF_MEM *str, int len); 87 int» BUF_MEM_grow_clean(BUF_MEM *str, size_t len);
88 char * BUF_strdup(const char *str); 88 char * BUF_strdup(const char *str);
89 char * BUF_strndup(const char *str, size_t siz); 89 char * BUF_strndup(const char *str, size_t siz);
90 void * BUF_memdup(const void *data, size_t siz); 90 void * BUF_memdup(const void *data, size_t siz);
91 void BUF_reverse(unsigned char *out, unsigned char *in, size_t siz);
91 92
92 /* safe string functions */ 93 /* safe string functions */
93 size_t BUF_strlcpy(char *dst,const char *src,size_t siz); 94 size_t BUF_strlcpy(char *dst,const char *src,size_t siz);
94 size_t BUF_strlcat(char *dst,const char *src,size_t siz); 95 size_t BUF_strlcat(char *dst,const char *src,size_t siz);
95 96
96 97
97 /* BEGIN ERROR CODES */ 98 /* BEGIN ERROR CODES */
98 /* The following lines are auto generated by the script mkerr.pl. Any changes 99 /* The following lines are auto generated by the script mkerr.pl. Any changes
99 * made after this point may be overwritten when the script is next run. 100 * made after this point may be overwritten when the script is next run.
100 */ 101 */
101 void ERR_load_BUF_strings(void); 102 void ERR_load_BUF_strings(void);
102 103
103 /* Error codes for the BUF functions. */ 104 /* Error codes for the BUF functions. */
104 105
105 /* Function codes. */ 106 /* Function codes. */
106 #define BUF_F_BUF_MEMDUP 103 107 #define BUF_F_BUF_MEMDUP 103
107 #define BUF_F_BUF_MEM_GROW 100 108 #define BUF_F_BUF_MEM_GROW 100
108 #define BUF_F_BUF_MEM_GROW_CLEAN 105 109 #define BUF_F_BUF_MEM_GROW_CLEAN 105
109 #define BUF_F_BUF_MEM_NEW 101 110 #define BUF_F_BUF_MEM_NEW 101
110 #define BUF_F_BUF_STRDUP 102 111 #define BUF_F_BUF_STRDUP 102
111 #define BUF_F_BUF_STRNDUP 104 112 #define BUF_F_BUF_STRNDUP 104
112 113
113 /* Reason codes. */ 114 /* Reason codes. */
114 115
115 #ifdef __cplusplus 116 #ifdef __cplusplus
116 } 117 }
117 #endif 118 #endif
118 #endif 119 #endif
OLDNEW
« no previous file with comments | « openssl/crypto/buffer/buf_str.c ('k') | openssl/crypto/buffer/buffer.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698