src/transport.c
author vb
Mon, 01 Sep 2014 13:02:23 +0200
changeset 23 dba569e54163
child 28 7fc9fc3e680c
permissions -rw-r--r--
adding the concepts of transports and cryptotech
vb@23
     1
#include "transport.h"
vb@23
     2
vb@23
     3
#include <stdlib.h>
vb@23
     4
#include <memory.h>
vb@23
     5
#include <assert.h>
vb@23
     6
vb@23
     7
PEP_STATUS init_transport_system(PEP_transport_t* transports)
vb@23
     8
{
vb@23
     9
    assert(PEP_trans__count == 1);
vb@23
    10
    memset(transports, 0, sizeof(PEP_transport_t) * PEP_trans__count);
vb@23
    11
vb@23
    12
    transports[0].id = PEP_trans_auto;
vb@23
    13
vb@23
    14
    return PEP_STATUS_OK;
vb@23
    15
}