path: root/utils
AgeCommit message (Collapse)AuthorFilesLines
2016-04-29conv_gen: Use python2 to execute the scriptHolger Hans Peter Freyther1-1/+1
The script does not work with python3: $ python3 utils/conv_gen.py File "utils/conv_gen.py", line 124 def _print_term(self, fi, num_states, pack = False): Second there is no 'python' on FreeBSD and one needs to select the major version to use. GEN conv_cs3_gen.c GEN conv_xcch_gen.c GEN conv_cs2_gen.c python: not found python: not found python: not found By using python2 we solve both issues. On Debian python2 is located inside the python-minimal package.
2016-04-29add two missing files (gsm0503.h / conv_gen.py) to previous commitHarald Welte1-0/+494
2016-03-11rename osim_file_find_* to osim_file_desc_find_*Harald Welte1-1/+1
they return an osim_file_desc, and not an osim_file, so fix the naming
2015-12-08utils: add TALLOC_CFLAGS to buildHarald Welte1-1/+1
this is an attempt to fix the FreeBSD build
2015-11-07osmo-sim-test: add missing includeAlexander Huemer1-0/+1
2015-05-26osmo-auc-gen: '-a' is already the algorithm. Fix the helpHolger Hans Peter Freyther1-1/+1
2015-05-17build: Fix out-of-tree buildsAndreas Rottmann1-1/+1
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>
2014-11-14pcsc: Allow to disable the PCSC dependencyHolger Hans Peter Freyther1-3/+5
* 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-10-27osmo-sim-test: Fix read_binary() return checkHarald Welte1-1/+1
if we expect rmsg to be set, we should check for it...
2014-10-26sim: Prepare infrastructure for protocols != T=0 and other driversHarald Welte1-2/+2
2014-10-26sim: Make osmo-sim-test compile againHarald Welte1-1/+1
2014-10-26sim: add decoding of status wordsHarald Welte1-0/+3
2014-10-26sim: strip the SW from the returned data, as SW is passed in msgb->cbHarald Welte1-3/+3
2014-10-26sim: add copyright notices and merge file_codec.c into core.cHarald Welte1-6/+23
2014-10-26sim: osmo-sim-test: Also dump binary filesHarald Welte1-10/+39
2014-10-26initial checkin of 'libosmosim'Harald Welte2-0/+375
2014-10-03build: remove unused all_includes and use AM_CPPFLAGSJan Engelhardt1-1/+2
Preprocessor flags are best placed in AM_CPPFLAGS. Remove use of the unused all_includes variable, which is never set.
2014-10-03utils: resolve compiler warnings on implicit declarationsJan Engelhardt1-0/+1
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-06-22osmo-auc-gen: Fix compiler warnings about aliasingHolger Hans Peter Freyther1-4/+7
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();
2013-07-14utils: Fix compiler warnings n the osmo-auc-gen utilityHolger Hans Peter Freyther1-1/+3
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-04-21osmo-arfcn: Return something from the methodHolger Hans Peter Freyther1-0/+1
This is a fatal error when building RPMs for OpenSUSE.
2012-12-11build: Don't use the deprecated INCLUDES in the various Makefile.amSylvain Munaut1-1/+2
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2012-12-11utils/osmo-arfcn: Implement option to get ARFCN from frequencySylvain Munaut1-1/+32
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2012-12-06osmo-arfcn: add support for PCS bandHarald Welte1-6/+13
2012-11-16actually install osmo-arfcn and osmo-auc-gen as part of 'make install'Harald Welte1-1/+1
2012-08-02Add missing includes to timer_test.c and osmo-auc-gen.cHarald Welte1-0/+1
This fixes the build with -Werror-implicit-function-declaration. taken from malformatted patch of Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org>
2012-06-27osmo-auc-gen: Add "-I" mode for generating triplets.dat for strongswanHarald Welte1-3/+23
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-03-22osmo-auc-gen: Add mode for verifying user-supplied AUTSHarald Welte1-14/+25
When -A is used on the command line, the respective AUTS value will be validated and the SQN of the UICC printed.
2012-03-21update copyright noticeHarald Welte1-2/+2
2012-03-21osmo-auc-gen: Add -O to the getop line to make it workHolger Hans Peter Freyther1-1/+1
2012-03-21auth_milenage/osmo-auc-gen: compute OPC in case only OP is knownHarald Welte1-0/+12
2012-03-21osmo-auc-gen: Introduce a small cmdline help/referenceHarald Welte1-1/+26
2011-12-07auth_core: don't use anonymous unions to make certain gcc versions happyHarald Welte1-10/+10
2011-12-07add 'osmo-auc-gen' tool that can be used to generate auth vectorsHarald Welte2-1/+187
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-09-02Added autoconf option for utilities and embeddedjob1-0/+2
2011-08-20add script to generate http://www.osmocom.org/doc tree structureHarald Welte1-0/+14
2011-08-02add new 'osmo-arfcn' program to compute frequency based on arfcnHarald Welte2-0/+108
The freq -> arfcn side still needs to be implemented.