Skip to content

Commit

Permalink
Merge pull request #12 from h2o/master
Browse files Browse the repository at this point in the history
Sync with H2O
  • Loading branch information
huitema authored Oct 8, 2017
2 parents ee39159 + f205149 commit b83cae9
Show file tree
Hide file tree
Showing 5 changed files with 210 additions and 157 deletions.
10 changes: 9 additions & 1 deletion include/picotls.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
#ifndef picotls_h
#define picotls_h

#ifdef __cplusplus
extern "C" {
#endif

#include <assert.h>
#include <inttypes.h>
#include <sys/types.h>
Expand Down Expand Up @@ -766,7 +770,7 @@ inline ptls_iovec_t ptls_iovec_init(const void *p, size_t len)
inline void ptls_buffer_init(ptls_buffer_t *buf, void *smallbuf, size_t smallbuf_size)
{
assert(smallbuf != NULL);
buf->base = smallbuf;
buf->base = (uint8_t *)smallbuf;
buf->off = 0;
buf->capacity = smallbuf_size;
buf->is_allocated = 0;
Expand Down Expand Up @@ -807,4 +811,8 @@ inline size_t ptls_aead_decrypt(ptls_aead_context_t *ctx, void *output, const vo

int ptls_load_certificates(ptls_context_t *ctx, char *cert_pem_file);

#ifdef __cplusplus
}
#endif

#endif
Loading

0 comments on commit b83cae9

Please sign in to comment.