Consistently use accessors in service_indicator.c.inc

This'll eventually get reworked, but for now let's fix an IWYU issue by
just not depending on the structs.

Change-Id: Iacfe94dd5664975154006bd467fb8d29996a5d10
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/70811
Reviewed-by: Bob Beck <bbe@google.com>
Commit-Queue: David Benjamin <davidben@google.com>
diff --git a/crypto/fipsmodule/service_indicator/service_indicator.c.inc b/crypto/fipsmodule/service_indicator/service_indicator.c.inc
index cad355d..dcbf819 100644
--- a/crypto/fipsmodule/service_indicator/service_indicator.c.inc
+++ b/crypto/fipsmodule/service_indicator/service_indicator.c.inc
@@ -248,7 +248,7 @@
 }
 
 void EC_KEY_keygen_verify_service_indicator(const EC_KEY *eckey) {
-  if (is_ec_fips_approved(EC_GROUP_get_curve_name(eckey->group))) {
+  if (is_ec_fips_approved(EC_GROUP_get_curve_name(EC_KEY_get0_group(eckey)))) {
     FIPS_service_indicator_update_state();
   }
 }
@@ -287,7 +287,7 @@
 }
 
 void HMAC_verify_service_indicator(const EVP_MD *evp_md) {
-  switch (evp_md->type) {
+  switch (EVP_MD_type(evp_md)) {
     case NID_sha1:
     case NID_sha224:
     case NID_sha256: