~ubuntu-branches/ubuntu/utopic/openssl/utopic

« back to all changes in this revision

Viewing changes to crypto/buffer/buffer.h

  • Committer: Bazaar Package Importer
  • Author(s): Kurt Roeckx
  • Date: 2011-04-02 13:19:19 UTC
  • mfrom: (1.2.1 upstream) (11.2.2 experimental)
  • mto: This revision was merged to the branch mainline in revision 55.
  • Revision ID: james.westby@ubuntu.com-20110402131919-anszuslper64ey9e
Tags: 1.0.0d-1
* New upstream version
  - Fixes CVE-2011-0014
* Make libssl-doc Replaces/Breaks with old libssl-dev packages
  (Closes: #607609)
* Only export the symbols we should, instead of all.
* Add symbol file.
* Upload to unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
 
77
77
struct buf_mem_st
78
78
        {
79
 
        int length;     /* current number of bytes */
 
79
        size_t length;  /* current number of bytes */
80
80
        char *data;
81
 
        int max;        /* size of buffer */
 
81
        size_t max;     /* size of buffer */
82
82
        };
83
83
 
84
84
BUF_MEM *BUF_MEM_new(void);
85
85
void    BUF_MEM_free(BUF_MEM *a);
86
 
int     BUF_MEM_grow(BUF_MEM *str, int len);
87
 
int     BUF_MEM_grow_clean(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, size_t len);
88
88
char *  BUF_strdup(const char *str);
89
89
char *  BUF_strndup(const char *str, size_t siz);
90
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
93
/* safe string functions */
93
94
size_t BUF_strlcpy(char *dst,const char *src,size_t siz);