diff options
Diffstat (limited to 'src/lib/libssl/bytestring.h')
| -rw-r--r-- | src/lib/libssl/bytestring.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/libssl/bytestring.h b/src/lib/libssl/bytestring.h index 07be6ddd50..80ca00d77a 100644 --- a/src/lib/libssl/bytestring.h +++ b/src/lib/libssl/bytestring.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: bytestring.h,v 1.9 2015/06/16 06:37:58 doug Exp $ */ | 1 | /* $OpenBSD: bytestring.h,v 1.10 2015/06/17 07:00:22 doug Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2014, Google Inc. | 3 | * Copyright (c) 2014, Google Inc. |
| 4 | * | 4 | * |
| @@ -40,6 +40,7 @@ extern "C" { | |||
| 40 | /* CRYPTO ByteString */ | 40 | /* CRYPTO ByteString */ |
| 41 | typedef struct cbs_st { | 41 | typedef struct cbs_st { |
| 42 | const uint8_t *data; | 42 | const uint8_t *data; |
| 43 | size_t initial_len; | ||
| 43 | size_t len; | 44 | size_t len; |
| 44 | } CBS; | 45 | } CBS; |
| 45 | 46 | ||
| @@ -66,6 +67,11 @@ const uint8_t *CBS_data(const CBS *cbs); | |||
| 66 | size_t CBS_len(const CBS *cbs); | 67 | size_t CBS_len(const CBS *cbs); |
| 67 | 68 | ||
| 68 | /* | 69 | /* |
| 70 | * CBS_offset returns the current offset into the original data of |cbs|. | ||
| 71 | */ | ||
| 72 | size_t CBS_offset(const CBS *cbs); | ||
| 73 | |||
| 74 | /* | ||
| 69 | * CBS_stow copies the current contents of |cbs| into |*out_ptr| and | 75 | * 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 | 76 | * |*out_len|. If |*out_ptr| is not NULL, the contents are freed with |
| 71 | * free. It returns one on success and zero on allocation failure. On | 77 | * free. It returns one on success and zero on allocation failure. On |
