Back to index

lightning-sunbird  0.9+nobinonly
Defines
secmpi.h File Reference
#include "mpi.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define CHECK_SEC_OK(func)   if (SECSuccess != (rv = func)) goto cleanup
#define CHECK_MPI_OK(func)   if (MP_OKAY > (err = func)) goto cleanup
#define OCTETS_TO_MPINT(oc, mp, len)   CHECK_MPI_OK(mp_read_unsigned_octets((mp), oc, len))
#define SECITEM_TO_MPINT(it, mp)   CHECK_MPI_OK(mp_read_unsigned_octets((mp), (it).data, (it).len))
#define MPINT_TO_SECITEM(mp, it, arena)
#define MP_TO_SEC_ERROR(err)

Define Documentation

#define CHECK_MPI_OK (   func)    if (MP_OKAY > (err = func)) goto cleanup

Definition at line 41 of file secmpi.h.

#define CHECK_SEC_OK (   func)    if (SECSuccess != (rv = func)) goto cleanup

Definition at line 39 of file secmpi.h.

Value:

Definition at line 55 of file secmpi.h.

#define MPINT_TO_SECITEM (   mp,
  it,
  arena 
)
Value:
SECITEM_AllocItem(arena, (it), mp_unsigned_octet_size(mp)); \
    if ((it)->data == NULL) {err = MP_MEM; goto cleanup;}       \
    err = mp_to_unsigned_octets(mp, (it)->data, (it)->len);     \
    if (err < 0) goto cleanup; else err = MP_OKAY;

Definition at line 49 of file secmpi.h.

#define OCTETS_TO_MPINT (   oc,
  mp,
  len 
)    CHECK_MPI_OK(mp_read_unsigned_octets((mp), oc, len))

Definition at line 43 of file secmpi.h.

Definition at line 46 of file secmpi.h.