Botan 3.9.0
Crypto and TLS for C&
|
#include <botan/ffi.h>
#include <botan/pk_keys.h>
#include <botan/internal/ffi_oid.h>
#include <botan/internal/ffi_pkey.h>
#include <botan/internal/ffi_util.h>
Go to the source code of this file.
Functions | |
int | botan_oid_cmp (int *result, botan_asn1_oid_t a_w, botan_asn1_oid_t b_w) |
int | botan_oid_destroy (botan_asn1_oid_t oid) |
int | botan_oid_equal (botan_asn1_oid_t a_w, botan_asn1_oid_t b_w) |
int | botan_oid_from_string (botan_asn1_oid_t *oid_obj, const char *oid_str) |
int | botan_oid_register (botan_asn1_oid_t oid, const char *name) |
int | botan_oid_view_name (botan_asn1_oid_t oid, botan_view_ctx ctx, botan_view_str_fn view) |
int | botan_oid_view_string (botan_asn1_oid_t oid, botan_view_ctx ctx, botan_view_str_fn view) |
int botan_oid_cmp | ( | int * | result, |
botan_asn1_oid_t | a, | ||
botan_asn1_oid_t | b ) |
Sets
result | to comparison result: -1 if a < b, 0 if a == b, 1 if a > b |
Definition at line 64 of file ffi_oid.cpp.
References BOTAN_FFI_ERROR_NULL_POINTER, BOTAN_FFI_SUCCESS, BOTAN_FFI_VISIT, and Botan_FFI::safe_get().
int botan_oid_destroy | ( | botan_asn1_oid_t | oid | ) |
Definition at line 19 of file ffi_oid.cpp.
References BOTAN_FFI_CHECKED_DELETE.
int botan_oid_equal | ( | botan_asn1_oid_t | a, |
botan_asn1_oid_t | b ) |
Definition at line 60 of file ffi_oid.cpp.
References BOTAN_FFI_VISIT, and Botan_FFI::safe_get().
int botan_oid_from_string | ( | botan_asn1_oid_t * | oid, |
const char * | oid_str ) |
Create an OID from a string, either dot notation (e.g. '1.2.3.4') or a registered name (e.g. 'RSA')
oid | hanlder to the resulting OID |
oid_str | the name of the OID to create |
Definition at line 23 of file ffi_oid.cpp.
References BOTAN_FFI_ERROR_BAD_PARAMETER, BOTAN_FFI_ERROR_NULL_POINTER, Botan_FFI::ffi_guard_thunk(), Botan_FFI::ffi_new_object(), and Botan::OID::from_string().
int botan_oid_register | ( | botan_asn1_oid_t | oid, |
const char * | name ) |
Registers an OID so that it may later be retrieved by name
Definition at line 41 of file ffi_oid.cpp.
References BOTAN_FFI_ERROR_NULL_POINTER, BOTAN_FFI_SUCCESS, BOTAN_FFI_VISIT, and Botan::OID::register_oid().
int botan_oid_view_name | ( | botan_asn1_oid_t | oid, |
botan_view_ctx | ctx, | ||
botan_view_str_fn | view ) |
View an OIDs registered name if it exists, else its dot notation
Definition at line 55 of file ffi_oid.cpp.
References BOTAN_FFI_VISIT, and Botan_FFI::invoke_view_callback().
int botan_oid_view_string | ( | botan_asn1_oid_t | oid, |
botan_view_ctx | ctx, | ||
botan_view_str_fn | view ) |
View an OID in dot notation
Definition at line 51 of file ffi_oid.cpp.
References BOTAN_FFI_VISIT, and Botan_FFI::invoke_view_callback().