Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
avr-pager
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yids
avr-pager
Commits
c4f40483
Commit
c4f40483
authored
Nov 13, 2016
by
yids
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- removed some unused libs form makefile
- some arduino ifdeffing
parent
ee8f70e3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
base-tx/Makefile
base-tx/Makefile
+5
-5
libs/pagerlib/pagerlib.c
libs/pagerlib/pagerlib.c
+4
-0
No files found.
base-tx/Makefile
View file @
c4f40483
...
...
@@ -2,26 +2,26 @@
CC
=
colorgcc
CFLAGS
=
"-I ../libs -DDEBUG"
all
:
t
est keygen tx-test rx-test
all
:
t
x-test rx-test keygen test.c
base-tx
:
base-tx.c
$(CC)
-o
base-tx base-tx.c
$(LIBS)
$(CFLAGS)
test
:
test.c ../libs/pagerlib/pagerlib.c ../libs/pagerlib/things.c ../libs/pagerlib/pagerlib.h ../libs/pagerlib/packets.h
$(CC)
-std
=
c99
-g
-o
test
test.c ../libs/
micro-ecc/uECC.c ../libs/pagerlib/pagerlib.c ../libs/pagerlib/things.c
-lmbedtls
-lmbedx509
-lsodium
-lmbedcrypto
$(LIBS)
$(CFLAGS)
$(CC)
-std
=
c99
-g
-o
test
test.c ../libs/
pagerlib/pagerlib.c ../libs/pagerlib/things.c
-lsodium
$(LIBS)
$(CFLAGS)
putstest
:
putstest.c ../libs/pagerlib/pagerlib.c ../libs/pagerlib/things.c ../libs/pagerlib/pagerlib.h ../libs/pagerlib/packets.h
$(CC)
-std
=
c99
-g
-o
putstest putstest.c ../libs/micro-ecc/uECC.c ../libs/pagerlib/pagerlib.c ../libs/pagerlib/things.c
-lmbedtls
-lmbedx509
-lsodium
-lmbedcrypto
$(LIBS)
$(CFLAGS)
rx-test
:
rx-test.c ../libs/pagerlib/pagerlib.c ../libs/pagerlib/things.c
$(CC)
-std
=
c99
-g
-o
rx-test rx-test.c ../libs/pagerlib/pagerlib.c ../libs/pagerlib/things.c
-lmbedtls
-lmbedx509
-lmbedcrypto
-lsodium
$(LIBS)
$(CFLAGS)
$(CC)
-std
=
c99
-g
-o
rx-test rx-test.c ../libs/pagerlib/pagerlib.c ../libs/pagerlib/things.c
-lsodium
$(LIBS)
$(CFLAGS)
tx-test
:
tx-test.c ../libs/pagerlib/pagerlib.c ../libs/pagerlib/things.c
$(CC)
-std
=
c99
-g
-o
tx-test tx-test.c ../libs/pagerlib/pagerlib.c ../libs/pagerlib/things.c
-l
mbedtls
-lmbedx509
-lmbedcrypto
-lsodium
$(LIBS)
$(CFLAGS)
$(CC)
-std
=
c99
-g
-o
tx-test tx-test.c ../libs/pagerlib/pagerlib.c ../libs/pagerlib/things.c
-l
sodium
$(LIBS)
$(CFLAGS)
keygen
:
keygen.c ../libs/pagerlib/pagerlib.c ../libs/pagerlib/things.c
$(CC)
-std
=
c99
-g
-o
keygen keygen.c ../libs/pagerlib/pagerlib.c ../libs/pagerlib/things.c
-l
mbedtls
-lmbedx509
-lmbedcrypto
-l
sodium
$(LIBS)
$(CFLAGS)
$(CC)
-std
=
c99
-g
-o
keygen keygen.c ../libs/pagerlib/pagerlib.c ../libs/pagerlib/things.c
-lsodium
$(LIBS)
$(CFLAGS)
test2
:
test2.c
$(CC)
-std
=
c99
-o
test2 test2.c ../libs/micro-ecc/uECC.c
-lmbedtls
-lmbedx509
-lmbedcrypto
$(LIBS)
$(CFLAGS)
...
...
libs/pagerlib/pagerlib.c
View file @
c4f40483
...
...
@@ -273,6 +273,9 @@ int pl_save_public_key(char *pubkey, char *filename)
*/
char
*
pl_load_public_key
(
char
*
filename
)
{
#ifdef ARDUINO
return
1
;
#else
char
*
public_key
;
public_key
=
malloc
(
crypto_box_PUBLICKEYBYTES
);
FILE
*
lf
;
...
...
@@ -280,6 +283,7 @@ char * pl_load_public_key(char *filename)
fread
(
public_key
,
1
,
crypto_box_PUBLICKEYBYTES
,
lf
);
fclose
(
lf
);
return
public_key
;
#endif
}
int
pl_load_key_in_list
(
struct
pl_ctx
*
ctx
,
struct
pl_keypair
*
key
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment