sgsn: Add global require_update_location flag

This flag is used to determine, whether the Update Location procedure
shall be invoked. This is currently only set, when the 'remote'
authorization policy is set. When the flag is set, sgsn_auth_update
will not never be called directly by sgsn_auth_request, if an Attach
Request procedure is pending, even if the remote connection fails for
some reason.

Sponsored-by: On-Waves ehf
diff --git a/openbsc/tests/sgsn/sgsn_test.c b/openbsc/tests/sgsn/sgsn_test.c
index 7c48eef..58d3a4f 100644
--- a/openbsc/tests/sgsn/sgsn_test.c
+++ b/openbsc/tests/sgsn/sgsn_test.c
@@ -877,6 +877,7 @@
 	subscr = gprs_subscr_get_or_create("123456789012345");
 	subscr->authorized = 1;
 	sgsn->cfg.require_authentication = 1;
+	sgsn->cfg.require_update_location = 1;
 	subscr_put(subscr);
 
 	printf("Auth policy 'remote', auth faked: ");
@@ -919,6 +920,7 @@
 	subscr = gprs_subscr_get_or_create("123456789012345");
 	subscr->authorized = 1;
 	sgsn->cfg.require_authentication = 1;
+	sgsn->cfg.require_update_location = 1;
 	subscr_put(subscr);
 
 	printf("Auth policy 'remote', triplet based auth: ");