diff options
author | doug <> | 2015-04-29 02:11:09 +0000 |
---|---|---|
committer | doug <> | 2015-04-29 02:11:09 +0000 |
commit | cf34713cd683bb40529f80a7460a5d0c1466ea3f (patch) | |
tree | f0917df0b9d6f7c7a83ede6a63f6f6632da5e489 /src/lib/libssl/bytestring.h | |
parent | d79e6451e5386f81e8223bb4eb91bdc37afa60d4 (diff) | |
download | openbsd-cf34713cd683bb40529f80a7460a5d0c1466ea3f.tar.gz openbsd-cf34713cd683bb40529f80a7460a5d0c1466ea3f.tar.bz2 openbsd-cf34713cd683bb40529f80a7460a5d0c1466ea3f.zip |
Add whitespace and replace OPENSSL_free with free in documentation.
ok jsing@
Diffstat (limited to '')
-rw-r--r-- | src/lib/libssl/bytestring.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/libssl/bytestring.h b/src/lib/libssl/bytestring.h index 93c3df6f10..c2b94c31a2 100644 --- a/src/lib/libssl/bytestring.h +++ b/src/lib/libssl/bytestring.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bytestring.h,v 1.4 2015/02/07 06:10:32 doug Exp $ */ | 1 | /* $OpenBSD: bytestring.h,v 1.5 2015/04/29 02:11:09 doug Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2014, Google Inc. | 3 | * Copyright (c) 2014, Google Inc. |
4 | * | 4 | * |
@@ -68,8 +68,8 @@ size_t CBS_len(const CBS *cbs); | |||
68 | /* | 68 | /* |
69 | * CBS_stow copies the current contents of |cbs| into |*out_ptr| and | 69 | * CBS_stow copies the current contents of |cbs| into |*out_ptr| and |
70 | * |*out_len|. If |*out_ptr| is not NULL, the contents are freed with | 70 | * |*out_len|. If |*out_ptr| is not NULL, the contents are freed with |
71 | * OPENSSL_free. It returns one on success and zero on allocation failure. On | 71 | * free. It returns one on success and zero on allocation failure. On |
72 | * success, |*out_ptr| should be freed with OPENSSL_free. If |cbs| is empty, | 72 | * success, |*out_ptr| should be freed with free. If |cbs| is empty, |
73 | * |*out_ptr| will be NULL. | 73 | * |*out_ptr| will be NULL. |
74 | */ | 74 | */ |
75 | int CBS_stow(const CBS *cbs, uint8_t **out_ptr, size_t *out_len); | 75 | int CBS_stow(const CBS *cbs, uint8_t **out_ptr, size_t *out_len); |
@@ -77,8 +77,8 @@ int CBS_stow(const CBS *cbs, uint8_t **out_ptr, size_t *out_len); | |||
77 | /* | 77 | /* |
78 | * CBS_strdup copies the current contents of |cbs| into |*out_ptr| as a | 78 | * CBS_strdup copies the current contents of |cbs| into |*out_ptr| as a |
79 | * NUL-terminated C string. If |*out_ptr| is not NULL, the contents are freed | 79 | * NUL-terminated C string. If |*out_ptr| is not NULL, the contents are freed |
80 | * with OPENSSL_free. It returns one on success and zero on allocation | 80 | * with free. It returns one on success and zero on allocation |
81 | * failure. On success, |*out_ptr| should be freed with OPENSSL_free. | 81 | * failure. On success, |*out_ptr| should be freed with free. |
82 | * | 82 | * |
83 | * NOTE: If |cbs| contains NUL bytes, the string will be truncated. Call | 83 | * NOTE: If |cbs| contains NUL bytes, the string will be truncated. Call |
84 | * |CBS_contains_zero_byte(cbs)| to check for NUL bytes. | 84 | * |CBS_contains_zero_byte(cbs)| to check for NUL bytes. |
@@ -335,7 +335,7 @@ void CBB_cleanup(CBB *cbb); | |||
335 | * CBB_finish completes any pending length prefix and sets |*out_data| to a | 335 | * CBB_finish completes any pending length prefix and sets |*out_data| to a |
336 | * malloced buffer and |*out_len| to the length of that buffer. The caller | 336 | * malloced buffer and |*out_len| to the length of that buffer. The caller |
337 | * takes ownership of the buffer and, unless the buffer was fixed with | 337 | * takes ownership of the buffer and, unless the buffer was fixed with |
338 | * |CBB_init_fixed|, must call |OPENSSL_free| when done. | 338 | * |CBB_init_fixed|, must call |free| when done. |
339 | * | 339 | * |
340 | * It can only be called on a "top level" |CBB|, i.e. one initialised with | 340 | * It can only be called on a "top level" |CBB|, i.e. one initialised with |
341 | * |CBB_init| or |CBB_init_fixed|. It returns one on success and zero on | 341 | * |CBB_init| or |CBB_init_fixed|. It returns one on success and zero on |