make ranap_common.cn.[ch] part of libosmo-ranap
diff --git a/include/osmocom/ranap/Makefile.am b/include/osmocom/ranap/Makefile.am
index b4e1e29..13f1e1c 100644
--- a/include/osmocom/ranap/Makefile.am
+++ b/include/osmocom/ranap/Makefile.am
@@ -9,6 +9,7 @@
 ranap_HEADERS = \
 	ranap_ies_defs.h \
 	ranap_common.h \
+	ranap_common_cn.h \
 	ranap_msg_factory.h \
 	iu_helpers.h \
 	RANAP_AccuracyFulfilmentIndicator.h \
diff --git a/src/tests/ranap_common_cn.h b/include/osmocom/ranap/ranap_common_cn.h
similarity index 100%
rename from src/tests/ranap_common_cn.h
rename to include/osmocom/ranap/ranap_common_cn.h
diff --git a/src/Makefile.am b/src/Makefile.am
index aeb75b2..0f5112d 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -28,7 +28,8 @@
 lib_LTLIBRARIES = libosmo-ranap.la
 libosmo_ranap_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(RANAP_LIBVERSION)
 libosmo_ranap_la_LIBADD = $(OSMOCORE_LIBS) $(OSMOGSM_LIBS) $(ASN1C_LIBS) $(COMMON_LDADD) ranap/libosmo-asn1-ranap.la
-libosmo_ranap_la_SOURCES = ranap_common.c ranap_encoder.c ranap_decoder.c ranap_msg_factory.c iu_helpers.c
+libosmo_ranap_la_SOURCES = ranap_common.c ranap_encoder.c ranap_decoder.c ranap_msg_factory.c iu_helpers.c \
+			   ranap_common_cn.c
 
 # build the actual HomeNodeB gateway
 #
diff --git a/src/tests/ranap_common_cn.c b/src/ranap_common_cn.c
similarity index 99%
rename from src/tests/ranap_common_cn.c
rename to src/ranap_common_cn.c
index 59186ff..751145c 100644
--- a/src/tests/ranap_common_cn.c
+++ b/src/ranap_common_cn.c
@@ -26,8 +26,8 @@
 #include <osmocom/core/logging.h>
 
 #include <osmocom/ranap/ranap_common.h>
+#include <osmocom/ranap/ranap_common_cn.h>
 #include <osmocom/ranap/ranap_ies_defs.h>
-#include "ranap_common_cn.h"
 
 #include "hnbgw.h"
 
diff --git a/src/tests/Makefile.am b/src/tests/Makefile.am
index 7262d27..bcf4a46 100644
--- a/src/tests/Makefile.am
+++ b/src/tests/Makefile.am
@@ -19,7 +19,7 @@
 test_ranap_SOURCES = $(RANAP_FILES) test-ranap.c test_common.c
 test_ranap_LDADD = $(COMMON_LIBS) $(top_builddir)/src/libosmo-ranap.la
 
-dummy_cn_SOURCES = $(RANAP_FILES) test_common.c dummy_cn_sua.c ranap_common_cn.c
+dummy_cn_SOURCES = $(RANAP_FILES) test_common.c dummy_cn_sua.c
 dummy_cn_LDADD = $(COMMON_LIBS) $(top_builddir)/src/libosmo-ranap.la
 
 # The `:;' works around a Bash 3.2 bug when the output is not writeable.