Sha256: dce86cad6fdc6bbdc938135d02935425efa477bcfda19e19d1552e3127a0ebfa

Contents?: true

Size: 1.34 KB

Versions: 15

Compression:

Stored size: 1.34 KB

Contents

/* Copyright (c) 2016, Google Inc.
 *
 * Permission to use, copy, modify, and/or distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
 * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */

#ifndef OPENSSL_HEADER_POOL_INTERNAL_H
#define OPENSSL_HEADER_POOL_INTERNAL_H

#include <openssl/lhash.h>
#include <openssl/thread.h>

#include "../lhash/internal.h"


#if defined(__cplusplus)
extern "C" {
#endif


DEFINE_LHASH_OF(CRYPTO_BUFFER)

struct crypto_buffer_st {
  CRYPTO_BUFFER_POOL *pool;
  uint8_t *data;
  size_t len;
  CRYPTO_refcount_t references;
  int data_is_static;
};

struct crypto_buffer_pool_st {
  LHASH_OF(CRYPTO_BUFFER) *bufs;
  CRYPTO_MUTEX lock;
  const uint64_t hash_key[2];
};


#if defined(__cplusplus)
}  // extern C
#endif

#endif  // OPENSSL_HEADER_POOL_INTERNAL_H

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
aws-crt-0.4.0 aws-crt-ffi/crt/aws-lc/crypto/pool/internal.h
aws-crt-0.3.0 aws-crt-ffi/crt/aws-lc/crypto/pool/internal.h
aws-crt-0.2.1 aws-crt-ffi/crt/aws-lc/crypto/pool/internal.h
aws-crt-0.2.0 aws-crt-ffi/crt/aws-lc/crypto/pool/internal.h
aws-crt-0.1.9 aws-crt-ffi/crt/aws-lc/crypto/pool/internal.h
grpc-1.54.3 third_party/boringssl-with-bazel/src/crypto/pool/internal.h
grpc-1.55.3 third_party/boringssl-with-bazel/src/crypto/pool/internal.h
grpc-1.56.2 third_party/boringssl-with-bazel/src/crypto/pool/internal.h
grpc-1.56.0 third_party/boringssl-with-bazel/src/crypto/pool/internal.h
grpc-1.56.0.pre3 third_party/boringssl-with-bazel/src/crypto/pool/internal.h
grpc-1.55.0 third_party/boringssl-with-bazel/src/crypto/pool/internal.h
grpc-1.54.2 third_party/boringssl-with-bazel/src/crypto/pool/internal.h
grpc-1.54.0 third_party/boringssl-with-bazel/src/crypto/pool/internal.h
aws-crt-0.1.8 aws-crt-ffi/crt/aws-lc/crypto/pool/internal.h
aws-crt-0.1.7 aws-crt-ffi/crt/aws-lc/crypto/pool/internal.h