Eneboo - Documentación para desarrolladores
'defines' | Funciones
Referencia del Archivo src/libdigidoc/openssl/ssl/d1_both.c
#include <limits.h>
#include <string.h>
#include <stdio.h>
#include "ssl_locl.h"
#include <openssl/buffer.h>
#include <openssl/rand.h>
#include <openssl/objects.h>
#include <openssl/evp.h>
#include <openssl/x509.h>

'defines'

#define RSMBLY_BITMASK_SIZE(msg_len)   (((msg_len) + 7) / 8)
#define RSMBLY_BITMASK_MARK(bitmask, start, end)
#define RSMBLY_BITMASK_IS_COMPLETE(bitmask, msg_len, is_complete)

Funciones

int dtls1_do_write (SSL *s, int type)
long dtls1_get_message (SSL *s, int st1, int stn, int mt, long max, int *ok)
int dtls1_send_finished (SSL *s, int a, int b, const char *sender, int slen)
int dtls1_send_change_cipher_spec (SSL *s, int a, int b)
unsigned long dtls1_output_cert_chain (SSL *s, X509 *x)
int dtls1_read_failed (SSL *s, int code)
int dtls1_get_queue_priority (unsigned short seq, int is_ccs)
int dtls1_retransmit_buffered_messages (SSL *s)
int dtls1_buffer_message (SSL *s, int is_ccs)
int dtls1_retransmit_message (SSL *s, unsigned short seq, unsigned long frag_off, int *found)
void dtls1_clear_record_buffer (SSL *s)
unsigned char * dtls1_set_message_header (SSL *s, unsigned char *p, unsigned char mt, unsigned long len, unsigned long frag_off, unsigned long frag_len)
void dtls1_get_message_header (unsigned char *data, struct hm_header_st *msg_hdr)
void dtls1_get_ccs_header (unsigned char *data, struct ccs_header_st *ccs_hdr)

Documentación de los 'defines'

#define RSMBLY_BITMASK_IS_COMPLETE (   bitmask,
  msg_len,
  is_complete 
)
Valor:
{ \
                        long ii; \
                        OPENSSL_assert((msg_len) > 0); \
                        is_complete = 1; \
                        if (bitmask[(((msg_len) - 1) >> 3)] != bitmask_end_values[((msg_len) & 7)]) is_complete = 0; \
                        if (is_complete) for (ii = (((msg_len) - 1) >> 3) - 1; ii >= 0 ; ii--) \
                                if (bitmask[ii] != 0xff) { is_complete = 0; break; } }
#define RSMBLY_BITMASK_MARK (   bitmask,
  start,
  end 
)
Valor:
{ \
                        if ((end) - (start) <= 8) { \
                                long ii; \
                                for (ii = (start); ii < (end); ii++) bitmask[((ii) >> 3)] |= (1 << ((ii) & 7)); \
                        } else { \
                                long ii; \
                                bitmask[((start) >> 3)] |= bitmask_start_values[((start) & 7)]; \
                                for (ii = (((start) >> 3) + 1); ii < ((((end) - 1)) >> 3); ii++) bitmask[ii] = 0xff; \
                                bitmask[(((end) - 1) >> 3)] |= bitmask_end_values[((end) & 7)]; \
                        } }
#define RSMBLY_BITMASK_SIZE (   msg_len)    (((msg_len) + 7) / 8)

Documentación de las funciones

int dtls1_buffer_message ( SSL s,
int  is_ccs 
)
void dtls1_clear_record_buffer ( SSL s)
int dtls1_do_write ( SSL s,
int  type 
)
void dtls1_get_ccs_header ( unsigned char *  data,
struct ccs_header_st ccs_hdr 
)
long dtls1_get_message ( SSL s,
int  st1,
int  stn,
int  mt,
long  max,
int ok 
)
void dtls1_get_message_header ( unsigned char *  data,
struct hm_header_st msg_hdr 
)
int dtls1_get_queue_priority ( unsigned short  seq,
int  is_ccs 
)
unsigned long dtls1_output_cert_chain ( SSL s,
X509 x 
)
int dtls1_read_failed ( SSL s,
int  code 
)
int dtls1_retransmit_buffered_messages ( SSL s)
int dtls1_retransmit_message ( SSL s,
unsigned short  seq,
unsigned long  frag_off,
int found 
)
int dtls1_send_change_cipher_spec ( SSL s,
int  a,
int  b 
)
int dtls1_send_finished ( SSL s,
int  a,
int  b,
const char *  sender,
int  slen 
)
unsigned char* dtls1_set_message_header ( SSL s,
unsigned char *  p,
unsigned char  mt,
unsigned long  len,
unsigned long  frag_off,
unsigned long  frag_len 
)
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'