all of these AVPs are part of "RADIUS Extension for Digest Auth" RFC 5090 */
| 896 | |
| 897 | /* all of these AVPs are part of "RADIUS Extension for Digest Auth" RFC 5090 */ |
| 898 | static int dm_register_digest_avps(void) |
| 899 | { |
| 900 | struct dict_object *UTF8String_type; |
| 901 | |
| 902 | FD_CHECK_dict_search(DICT_TYPE, TYPE_BY_NAME, "UTF8String", &UTF8String_type); |
| 903 | |
| 904 | /* Digest-Response */ |
| 905 | { |
| 906 | struct dict_avp_data data = { |
| 907 | 103, /* Code */ |
| 908 | 0, /* Vendor */ |
| 909 | "Digest-Response", /* Name */ |
| 910 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 911 | AVP_FLAG_MANDATORY, /* Fixed flag values */ |
| 912 | AVP_TYPE_OCTETSTRING /* base type of data */ |
| 913 | }; |
| 914 | FD_CHECK_dict_new(DICT_AVP, &data, UTF8String_type, NULL); |
| 915 | } |
| 916 | |
| 917 | /* Digest-Realm */ |
| 918 | { |
| 919 | struct dict_avp_data data = { |
| 920 | 104, /* Code */ |
| 921 | 0, /* Vendor */ |
| 922 | "Digest-Realm", /* Name */ |
| 923 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 924 | AVP_FLAG_MANDATORY, /* Fixed flag values */ |
| 925 | AVP_TYPE_OCTETSTRING /* base type of data */ |
| 926 | }; |
| 927 | FD_CHECK_dict_new(DICT_AVP, &data, UTF8String_type, NULL); |
| 928 | } |
| 929 | |
| 930 | /* Digest-Nonce */ |
| 931 | { |
| 932 | struct dict_avp_data data = { |
| 933 | 105, /* Code */ |
| 934 | 0, /* Vendor */ |
| 935 | "Digest-Nonce", /* Name */ |
| 936 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 937 | AVP_FLAG_MANDATORY, /* Fixed flag values */ |
| 938 | AVP_TYPE_OCTETSTRING /* base type of data */ |
| 939 | }; |
| 940 | FD_CHECK_dict_new(DICT_AVP, &data, UTF8String_type, NULL); |
| 941 | } |
| 942 | |
| 943 | /* Digest-Response-Auth */ |
| 944 | { |
| 945 | struct dict_avp_data data = { |
| 946 | 106, /* Code */ |
| 947 | 0, /* Vendor */ |
| 948 | "Digest-Response-Auth", /* Name */ |
| 949 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 950 | AVP_FLAG_MANDATORY, /* Fixed flag values */ |
| 951 | AVP_TYPE_OCTETSTRING /* base type of data */ |
| 952 | }; |
| 953 | FD_CHECK_dict_new(DICT_AVP, &data, UTF8String_type, NULL); |
| 954 | } |
| 955 |
no outgoing calls
no test coverage detected