aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2016-05-06 23:28:52 +0200
committerHarald Welte <laforge@gnumonks.org>2016-12-13 14:54:01 +0000
commit736474ce451a92cdc17db5f290f55f8cf22a13a2 (patch)
treeac022ed782acfc14f63cdd6f7bfa03df1f2ad7b7 /openbsc/include
parentef022783c37c459d0ccb5aa6f165d4d4dc6c0815 (diff)
move OAP messages implementations to libosmocore
This corresponds to change-id If5099e60681a215e798b6675f21813f26769c253 in libosmocore, which is now required to build openbsc. Related: OS#1592 Change-Id: I2f06aaa6eb54eafa860cfed8e72e41d82ff1c4cf
Diffstat (limited to 'openbsc/include')
-rw-r--r--openbsc/include/openbsc/Makefile.am1
-rw-r--r--openbsc/include/openbsc/oap_messages.h70
2 files changed, 0 insertions, 71 deletions
diff --git a/openbsc/include/openbsc/Makefile.am b/openbsc/include/openbsc/Makefile.am
index 9f574e6e9..8ea95e0a8 100644
--- a/openbsc/include/openbsc/Makefile.am
+++ b/openbsc/include/openbsc/Makefile.am
@@ -55,7 +55,6 @@ noinst_HEADERS = \
nat_rewrite_trie.h \
network_listen.h \
oap.h \
- oap_messages.h \
openbscdefines.h \
osmo_bsc.h \
osmo_bsc_grace.h \
diff --git a/openbsc/include/openbsc/oap_messages.h b/openbsc/include/openbsc/oap_messages.h
deleted file mode 100644
index ecb66df34..000000000
--- a/openbsc/include/openbsc/oap_messages.h
+++ /dev/null
@@ -1,70 +0,0 @@
-/* Osmocom Authentication Protocol message encoder/decoder */
-
-/* (C) 2015 by Sysmocom s.f.m.c. GmbH
- * All Rights Reserved
- *
- * Author: Neels Hofmeyr
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation; either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-#pragma once
-
-#include <stdint.h>
-#include <osmocom/core/msgb.h>
-#include <osmocom/gsm/protocol/gsm_04_08_gprs.h>
-
-/* Some numbers are out of sequence because (so far) they match gprs_gsup_iei.
- */
-enum oap_iei {
- OAP_CAUSE_IE = 0x02,
- OAP_RAND_IE = 0x20,
- OAP_AUTN_IE = 0x23,
- OAP_XRES_IE = 0x24,
- OAP_AUTS_IE = 0x25,
- OAP_CLIENT_ID_IE = 0x30,
-};
-
-enum osmo_oap_message_type {
- OAP_MSGT_REGISTER_REQUEST = 0b00000100,
- OAP_MSGT_REGISTER_ERROR = 0b00000101,
- OAP_MSGT_REGISTER_RESULT = 0b00000110,
-
- OAP_MSGT_CHALLENGE_REQUEST = 0b00001000,
- OAP_MSGT_CHALLENGE_ERROR = 0b00001001,
- OAP_MSGT_CHALLENGE_RESULT = 0b00001010,
-
- OAP_MSGT_SYNC_REQUEST = 0b00001100,
- OAP_MSGT_SYNC_ERROR = 0b00001101,
- OAP_MSGT_SYNC_RESULT = 0b00001110,
-};
-
-struct osmo_oap_message {
- enum osmo_oap_message_type message_type;
- enum gsm48_gmm_cause cause;
- uint16_t client_id;
- int rand_present;
- uint8_t rand[16];
- int autn_present;
- uint8_t autn[16];
- int xres_present;
- uint8_t xres[8];
- int auts_present;
- uint8_t auts[16];
-};
-
-int osmo_oap_decode(struct osmo_oap_message *oap_msg,
- const uint8_t *data, size_t data_len);
-void osmo_oap_encode(struct msgb *msg, const struct osmo_oap_message *oap_msg);
-