Browse Source

assert!

master
root 5 years ago
parent
commit
fa4f78db86
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      src/lc6_user.c

+ 3
- 0
src/lc6_user.c View File

#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h>
#include <assert.h> #include <assert.h>


#include "../inc/lc6_crypto.h" #include "../inc/lc6_crypto.h"


LC6_USER* lc6user_create(void) { LC6_USER* lc6user_create(void) {
LC6_USER *user = malloc(sizeof(LC6_USER)); LC6_USER *user = malloc(sizeof(LC6_USER));
assert(user);
memset(user, 0, sizeof(LC6_USER));


return lc6crypto_genuserkey(user); return lc6crypto_genuserkey(user);
} }

Loading…
Cancel
Save