Sha256: 87eef1f2c77bc6ab540058515caa6ad0d41ecf4e3c3dab304d90ffe19a5cb0de

Contents?: true

Size: 1.76 KB

Versions: 3

Compression:

Stored size: 1.76 KB

Contents

/*
 * Copyright 2018-present MongoDB, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef MONGOCRYPT_CACHE_KEY_PRIVATE_H
#define MONGOCRYPT_CACHE_KEY_PRIVATE_H

#include "mongocrypt-buffer-private.h"
#include "mongocrypt-cache-private.h"
#include "mongocrypt-key-private.h"
#include "mongocrypt-mutex-private.h"
#include "mongocrypt-opts-private.h"
#include "mongocrypt-status-private.h"

typedef struct {
   _mongocrypt_key_doc_t *key_doc;
   _mongocrypt_buffer_t decrypted_key_material;
} _mongocrypt_cache_key_value_t;

typedef struct {
   _mongocrypt_buffer_t id;               /* may be empty */
   _mongocrypt_key_alt_name_t *alt_names; /* may be NULL */
} _mongocrypt_cache_key_attr_t;

void
_mongocrypt_cache_key_init (_mongocrypt_cache_t *cache);

_mongocrypt_cache_key_attr_t *
_mongocrypt_cache_key_attr_new (_mongocrypt_buffer_t *id,
                                _mongocrypt_key_alt_name_t *alt_names);

_mongocrypt_cache_key_value_t *
_mongocrypt_cache_key_value_new (_mongocrypt_key_doc_t *key_doc,
                                 _mongocrypt_buffer_t *decrypted_key_material);

void
_mongocrypt_cache_key_value_destroy (void *value);

void
_mongocrypt_cache_key_attr_destroy (_mongocrypt_cache_key_attr_t *attr);


#endif /* MONGOCRYPT_CACHE_KEY_PRIVATE_H */

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
libmongocrypt-helper-1.7.4.0.1002 ext/libmongocrypt/libmongocrypt/src/mongocrypt-cache-key-private.h
libmongocrypt-helper-1.7.4.0.1001 ext/libmongocrypt/libmongocrypt/src/mongocrypt-cache-key-private.h
libmongocrypt-helper-1.7.4.0.1000 ext/libmongocrypt/libmongocrypt/src/mongocrypt-cache-key-private.h