source: EcnlProtoTool/trunk/openssl-1.1.0e/include/openssl/buffer.h

Last change on this file 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: 2.0 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_BUFFER_H
11# define HEADER_BUFFER_H
12
13# include <openssl/ossl_typ.h>
14# ifndef HEADER_CRYPTO_H
15# include <openssl/crypto.h>
16# endif
17
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23# include <stddef.h>
24
25# if !defined(NO_SYS_TYPES_H)
26# include <sys/types.h>
27# endif
28
29/*
30 * These names are outdated as of OpenSSL 1.1; a future release
31 * will move them to be deprecated.
32 */
33# define BUF_strdup(s) OPENSSL_strdup(s)
34# define BUF_strndup(s, size) OPENSSL_strndup(s, size)
35# define BUF_memdup(data, size) OPENSSL_memdup(data, size)
36# define BUF_strlcpy(dst, src, size) OPENSSL_strlcpy(dst, src, size)
37# define BUF_strlcat(dst, src, size) OPENSSL_strlcat(dst, src, size)
38# define BUF_strnlen(str, maxlen) OPENSSL_strnlen(str, maxlen)
39
40struct buf_mem_st {
41 size_t length; /* current number of bytes */
42 char *data;
43 size_t max; /* size of buffer */
44 unsigned long flags;
45};
46
47# define BUF_MEM_FLAG_SECURE 0x01
48
49BUF_MEM *BUF_MEM_new(void);
50BUF_MEM *BUF_MEM_new_ex(unsigned long flags);
51void BUF_MEM_free(BUF_MEM *a);
52size_t BUF_MEM_grow(BUF_MEM *str, size_t len);
53size_t BUF_MEM_grow_clean(BUF_MEM *str, size_t len);
54void BUF_reverse(unsigned char *out, const unsigned char *in, size_t siz);
55
56/* BEGIN ERROR CODES */
57/*
58 * The following lines are auto generated by the script mkerr.pl. Any changes
59 * made after this point may be overwritten when the script is next run.
60 */
61
62int ERR_load_BUF_strings(void);
63
64/* Error codes for the BUF functions. */
65
66/* Function codes. */
67# define BUF_F_BUF_MEM_GROW 100
68# define BUF_F_BUF_MEM_GROW_CLEAN 105
69# define BUF_F_BUF_MEM_NEW 101
70
71/* Reason codes. */
72
73# ifdef __cplusplus
74}
75# endif
76#endif
Note: See TracBrowser for help on using the repository browser.