Harald Welte
5ffb50371e
rename osim_file_find_* to osim_file_desc_find_*
...
they return an osim_file_desc, and not an osim_file, so fix the naming
2016-03-11 22:05:25 +07:00
Harald Welte
49a8f88565
utils: add TALLOC_CFLAGS to build
...
this is an attempt to fix the FreeBSD build
2015-12-08 14:14:29 +01:00
Alexander Huemer
aab4a2497c
osmo-sim-test: add missing include
2015-11-07 12:30:38 +01:00
Holger Hans Peter Freyther
91ff17c9ef
osmo-auc-gen: '-a' is already the algorithm. Fix the help
2015-05-26 00:11:37 +08:00
Andreas Rottmann
9eb1c80020
build: Fix out-of-tree builds
...
Fixes:
In file included from ../../../include/osmocom/core/msgb.h:25:0,
from ../../../include/osmocom/sim/sim.h:4,
from ../../../src/sim/reader_pcsc.c:30:
../../../include/osmocom/core/bits.h:6:35: fatal error: osmocom/core/bit16gen.h: No such file or directory
#include <osmocom/core/bit16gen.h>
In file included from ../../include/osmocom/core/msgb.h:25:0,
from ../../utils/osmo-sim-test.c:26:
../../include/osmocom/core/bits.h:6:35: fatal error: osmocom/core/bit16gen.h: No such file or directory
#include <osmocom/core/bit16gen.h>
2015-05-17 19:19:09 +02:00
Holger Hans Peter Freyther
18bcc8ab62
pcsc: Allow to disable the PCSC dependency
...
* PCSC is enabled by default
* --enable-pcsc is enabling it
* --disable-pcscis disabling it
* Fix the makefile of the utilities to not build pcsc and
use the right header files/libraries.
2014-11-14 15:06:09 +01:00
Harald Welte
d6ec984c51
osmo-sim-test: Fix read_binary() return check
...
if we expect rmsg to be set, we should check for it...
2014-10-27 20:46:40 +01:00
Harald Welte
55790aa09a
sim: Prepare infrastructure for protocols != T=0 and other drivers
2014-10-26 19:50:51 +01:00
Harald Welte
3fc3f068b3
sim: Make osmo-sim-test compile again
2014-10-26 19:09:23 +01:00
Harald Welte
7674960ffa
sim: add decoding of status words
2014-10-26 19:09:23 +01:00
Harald Welte
a5c9255baa
sim: strip the SW from the returned data, as SW is passed in msgb->cb
2014-10-26 19:09:22 +01:00
Harald Welte
ad41863b8d
sim: add copyright notices and merge file_codec.c into core.c
2014-10-26 19:09:22 +01:00
Harald Welte
a0ba4d9438
sim: osmo-sim-test: Also dump binary files
2014-10-26 19:09:22 +01:00
Harald Welte
d54c2ee8c5
initial checkin of 'libosmosim'
2014-10-26 19:09:22 +01:00
Jan Engelhardt
9ffeb9756a
build: remove unused all_includes and use AM_CPPFLAGS
...
Preprocessor flags are best placed in AM_CPPFLAGS. Remove use of the
unused all_includes variable, which is never set.
2014-10-03 08:48:31 +02:00
Jan Engelhardt
a6d83932ba
utils: resolve compiler warnings on implicit declarations
...
CC osmo-auc-gen.o
osmo-auc-gen.c: In function 'main':
osmo-auc-gen.c:216:3: warning: implicit declaration of function
'time' [-Wimplicit-function-declaration]
2014-10-03 08:46:47 +02:00
Holger Hans Peter Freyther
17aa6b25cb
osmo-auc-gen: Fix compiler warnings about aliasing
...
I ran "./utils/osmo-auc-gen -2 -a COMP128v1" and verified that
the RAND doen't look empty
Fixes:
osmo-auc-gen.c: In function ‘main’:
osmo-auc-gen.c:219:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(uint32_t *)&_rand[0] = rand();
^
osmo-auc-gen.c:220:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(uint32_t *)(&_rand[4]) = rand();
^
osmo-auc-gen.c:221:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(uint32_t *)(&_rand[8]) = rand();
^
osmo-auc-gen.c:222:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(uint32_t *)(&_rand[12]) = rand();
2014-06-22 16:53:55 +02:00
Holger Hans Peter Freyther
a652abc5bf
utils: Fix compiler warnings n the osmo-auc-gen utility
...
osmo-auc-gen.c:217:3: warning: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
osmo-auc-gen.c:249:3: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘uint64_t’ [-Wformat]
Fixes: Coverity CID 1040668
2013-07-14 09:14:37 +02:00
Holger Hans Peter Freyther
d0ce550251
osmo-arfcn: Return something from the method
...
This is a fatal error when building RPMs for OpenSUSE.
2013-04-21 21:04:19 +02:00
Sylvain Munaut
5689a3b744
build: Don't use the deprecated INCLUDES in the various Makefile.am
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2012-12-11 23:59:31 +01:00
Sylvain Munaut
c44310e351
utils/osmo-arfcn: Implement option to get ARFCN from frequency
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2012-12-11 23:45:03 +01:00
Harald Welte
6e264ae3cd
osmo-arfcn: add support for PCS band
2012-12-06 20:58:35 +01:00
Harald Welte
6643386f3f
actually install osmo-arfcn and osmo-auc-gen as part of 'make install'
2012-11-16 21:36:17 +01:00
Harald Welte
b53717f418
Add missing includes to timer_test.c and osmo-auc-gen.c
...
This fixes the build with -Werror-implicit-function-declaration.
taken from malformatted patch of Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org>
2012-08-02 08:42:59 +02:00
Harald Welte
57799ed87f
osmo-auc-gen: Add "-I" mode for generating triplets.dat for strongswan
...
If you want to use eap-sim-file with strongswan, you need a triplets.dat
file in a specific format. osmo-auc-gen can now generate the respective
format automatically.
2012-06-27 15:06:19 +02:00
Harald Welte
cebf3f0d3c
osmo-auc-gen: Add mode for verifying user-supplied AUTS
...
When -A is used on the command line, the respective AUTS value
will be validated and the SQN of the UICC printed.
2012-03-22 16:45:23 +01:00
Harald Welte
bc6f56c221
update copyright notice
2012-03-21 23:15:32 +01:00
Holger Hans Peter Freyther
0f5f93d2db
osmo-auc-gen: Add -O to the getop line to make it work
2012-03-21 21:38:42 +01:00
Harald Welte
a72e47b8a0
auth_milenage/osmo-auc-gen: compute OPC in case only OP is known
2012-03-21 09:04:14 +01:00
Harald Welte
5fb795e972
osmo-auc-gen: Introduce a small cmdline help/reference
2012-03-21 08:51:48 +01:00
Harald Welte
aae2362455
auth_core: don't use anonymous unions to make certain gcc versions happy
2011-12-07 11:35:02 +01:00
Harald Welte
915e0ef5e7
add 'osmo-auc-gen' tool that can be used to generate auth vectors
...
Thsi tool usses libosmocore in order to generate 2G and 3G
authentication vectors from private key material, exactly like an AuC
would produce them in a real network.
2011-12-07 02:38:42 +01:00
job
8e4deb677a
Added autoconf option for utilities and embedded
2011-09-02 09:10:37 +02:00
Harald Welte
429d2e454d
add script to generate http://www.osmocom.org/doc tree structure
2011-08-20 17:40:08 +02:00
Harald Welte
eeb78dde9b
add new 'osmo-arfcn' program to compute frequency based on arfcn
...
The freq -> arfcn side still needs to be implemented.
2011-08-02 13:44:54 +02:00