Back to GNU SASL Homepage

GNU SASL Cyclomatic Complexity Report

Report generated at: Fri Oct 22 01:46:24 CEST 2010

Resume

Total number of functions 170
Number of low risk functions 140
Number of moderate risk functions 16
Number of high risk functions 14
Number of untestable functions 0

Details for all functions

Used ranges:

  Cyclomatic Complexity Risk Evaluation
  0 - 10 Simple module, without much risk
  11 - 20 More complex module, moderate risk
  21 - 50 Complex module, high risk
  greater than 50 Untestable module, very high risk

Function Name Cyclomatic
Complexity
Number of
Statements
Number of
Lines
Source File
_gsasl_scram_sha1_server_step 44 153 292 ../../lib/scram/server.c
digest_md5_print_response 38 86 146 ../../lib/digest-md5/printer.c
parse_response 48 95 171 ../../lib/digest-md5/parser.c
_gsasl_scram_sha1_client_step 39 140 260 ../../lib/scram/client.c
digest_md5_hmac 37 162 236 ../../lib/digest-md5/digesthmac.c
digest_md5_print_challenge 36 94 168 ../../lib/digest-md5/printer.c
scram_parse_client_final 34 82 127 ../../lib/scram/parser.c
scram_parse_client_first 34 80 122 ../../lib/scram/parser.c
digest_md5_getsubopt 33 38 71 ../../lib/digest-md5/getsubopt.c
scram_parse_server_first 31 69 108 ../../lib/scram/parser.c
parse_challenge 43 95 203 ../../lib/digest-md5/parser.c
_gsasl_digest_md5_client_step 29 91 185 ../../lib/digest-md5/client.c
_gsasl_digest_md5_server_step 27 92 192 ../../lib/digest-md5/server.c
_gsasl_gssapi_client_step 24 91 178 ../../lib/gssapi/client.c
_gsasl_gssapi_server_step 19 73 146 ../../lib/gssapi/server.c
_gsasl_gs2_server_step 18 65 126 ../../lib/gs2/server.c
_gsasl_securid_client_step 18 59 106 ../../lib/securid/client.c
_gsasl_securid_server_step 15 55 89 ../../lib/securid/server.c
unescape_authzid 14 24 43 ../../lib/src/mechtools.c
_gsasl_login_server_step 15 50 87 ../../lib/login/server.c
_gsasl_plain_server_step 13 59 114 ../../lib/plain/server.c
register_builtin_mechs 13 38 79 ../../lib/src/init.c
_gsasl_gs2_client_step 13 37 75 ../../lib/gs2/client.c
digest_md5_decode 12 40 76 ../../lib/digest-md5/session.c
_gsasl_gs2_generate_header 12 26 50 ../../lib/src/mechtools.c
digest_md5_validate_response 12 19 49 ../../lib/digest-md5/validate.c
unescape 12 18 34 ../../lib/scram/parser.c
digest_md5_validate 12 15 26 ../../lib/digest-md5/validate.c
scram_valid_client_first 13 13 37 ../../lib/scram/validate.c
scram_print_client_first 11 22 42 ../../lib/scram/printer.c
  _gsasl_ntlm_client_step 11 53 105 ../../lib/ntlm/ntlm.c
  gs2_get_cred 10 35 60 ../../lib/gs2/server.c
  gsasl_simple_getpass 10 27 50 ../../lib/src/md5pwd.c
  prepare 10 27 50 ../../lib/gs2/client.c
  utf8tolatin1ifpossible 10 23 39 ../../lib/digest-md5/nonascii.c
  scram_valid_client_final 10 13 29 ../../lib/scram/validate.c
  _gsasl_gssapi_client_encode 9 28 54 ../../lib/gssapi/client.c
  gsasl_saslprep 9 26 50 ../../lib/src/saslprep.c
  gsasl_client_suggest_mechanism 9 25 45 ../../lib/src/suggest.c
  scram_parse_server_final 9 18 32 ../../lib/scram/parser.c
  _gsasl_saml20_server_step 9 34 69 ../../lib/saml20/server.c
  _gsasl_cram_md5_server_step 8 34 62 ../../lib/cram-md5/server.c
  _gsasl_gssapi_client_decode 8 27 52 ../../lib/gssapi/client.c
  setup 8 22 40 ../../lib/src/xstart.c
  scram_valid_server_first 8 11 24 ../../lib/scram/validate.c
  digest_md5_encode 7 45 68 ../../lib/digest-md5/session.c
  _gsasl_cram_md5_client_step 7 37 66 ../../lib/cram-md5/client.c
  _gsasl_gssapi_server_start 7 36 61 ../../lib/gssapi/server.c
  gsasl_finish 7 27 41 ../../lib/src/xfinish.c
  comma_append 7 18 31 ../../lib/digest-md5/printer.c
  _gsasl_parse_gs2_header 7 16 33 ../../lib/src/mechtools.c
  gsasl_register 7 16 37 ../../lib/src/register.c
  parse_finish 7 15 34 ../../lib/digest-md5/parser.c
  _gsasl_saml20_client_step 7 23 55 ../../lib/saml20/client.c
  digest_md5_validate_challenge 6 7 18 ../../lib/digest-md5/validate.c
  _gsasl_plain_client_step 6 26 47 ../../lib/plain/client.c
  _gsasl_scram_sha1_server_start 6 24 39 ../../lib/scram/server.c
  token2output 6 23 44 ../../lib/gs2/client.c
  _gsasl_listmech 6 20 35 ../../lib/src/listmech.c
  gsasl_done 6 17 28 ../../lib/src/done.c
  gsasl_step64 6 15 31 ../../lib/src/xstep.c
  digest_md5_qopstr2qops 7 22 54 ../../lib/digest-md5/qop.c
  gsasl_callback 5 8 18 ../../lib/src/callback.c
  _gsasl_digest_md5_hexdigit_to_char 5 5 13 ../../lib/digest-md5/server.c
  hexdigit_to_char 5 5 9 ../../lib/scram/client.c
  escape_authzid 5 16 32 ../../lib/gs2/client.c
  scram_escape 5 16 32 ../../lib/scram/printer.c
  escape_authzid 5 16 32 ../../lib/src/mechtools.c
  latin1toutf8 5 15 27 ../../lib/digest-md5/nonascii.c
  _gsasl_gs2_client_finish 5 12 20 ../../lib/gs2/client.c
  _gsasl_gs2_server_finish 5 11 20 ../../lib/gs2/server.c
  _gsasl_gssapi_server_finish 5 11 20 ../../lib/gssapi/server.c
  _gsasl_login_client_step 5 22 43 ../../lib/login/client.c
  _gsasl_gssapi_client_finish 4 9 17 ../../lib/gssapi/client.c
  find_mechanism 4 9 14 ../../lib/src/xstart.c
  gsasl_strerror 4 9 17 ../../lib/src/error.c
  gsasl_property_set_raw 4 9 22 ../../lib/src/property.c
  _gsasl_anonymous_server_step 4 8 25 ../../lib/anonymous/server.c
  _gsasl_support_p 4 7 11 ../../lib/src/supportp.c
  scram_print_server_final 4 7 16 ../../lib/scram/printer.c
  scram_print_client_final 4 7 17 ../../lib/scram/printer.c
  scram_print_server_first 4 7 17 ../../lib/scram/printer.c
  scram_valid_server_final 4 5 13 ../../lib/scram/validate.c
  _gsasl_gs2_server_start 4 26 44 ../../lib/gs2/server.c
  _gsasl_digest_md5_server_start 4 20 33 ../../lib/digest-md5/server.c
  _gsasl_digest_md5_client_start 4 18 30 ../../lib/digest-md5/client.c
  _gsasl_scram_sha1_client_start 4 16 30 ../../lib/scram/client.c
  gsasl_init 4 11 21 ../../lib/src/init.c
  cram_md5_digest 4 10 19 ../../lib/cram-md5/digest.c
  _gsasl_digest_md5_server_decode 4 10 23 ../../lib/digest-md5/server.c
  _gsasl_digest_md5_server_encode 4 10 23 ../../lib/digest-md5/server.c
  _gsasl_external_server_step 4 10 28 ../../lib/external/server.c
  _gsasl_digest_md5_client_decode 4 10 23 ../../lib/digest-md5/client.c
  _gsasl_digest_md5_client_encode 4 10 23 ../../lib/digest-md5/client.c
  _gsasl_external_client_step 3 9 19 ../../lib/external/client.c
  _gsasl_anonymous_client_step 3 9 19 ../../lib/anonymous/client.c
  main 3 8 14 ../../lib/tests/test-error.c
  _gsasl_code 3 8 20 ../../lib/src/xcode.c
  gsasl_property_get 3 7 18 ../../lib/src/property.c
  hex_p 3 7 11 ../../lib/scram/client.c
  gsasl_base64_from 3 6 13 ../../lib/src/base64.c
  gsasl_base64_to 3 6 13 ../../lib/src/base64.c
  digest_md5_print_finish 3 6 15 ../../lib/digest-md5/printer.c
  digest_md5_validate_finish 3 5 12 ../../lib/digest-md5/validate.c
  gsasl_check_version 3 3 8 ../../lib/src/version.c
  gsasl_mechanism_name 3 3 7 ../../lib/src/mechname.c
  gsasl_strerror_name 3 3 8 ../../lib/src/error.c
  _gsasl_gs2_client_start 3 24 39 ../../lib/gs2/client.c
  cram_md5_challenge 3 14 23 ../../lib/cram-md5/challenge.c
  start 3 11 24 ../../lib/src/xstart.c
  digest_md5_parse_finish 3 11 20 ../../lib/digest-md5/parser.c
  digest_md5_parse_response 3 11 20 ../../lib/digest-md5/parser.c
  digest_md5_parse_challenge 3 11 20 ../../lib/digest-md5/parser.c
  _gsasl_digest_md5_set_hashed_secret 3 11 22 ../../lib/digest-md5/server.c
  _gsasl_cram_md5_server_start 3 10 18 ../../lib/cram-md5/server.c
  gs2_get_oid 3 10 18 ../../lib/gs2/gs2helper.c
  map 21 43 96 ../../lib/src/property.c
  digest_md5_free_challenge 2 8 12 ../../lib/digest-md5/free.c
  _gsasl_ntlm_client_start 2 7 15 ../../lib/ntlm/ntlm.c
  _gsasl_login_client_start 2 7 15 ../../lib/login/client.c
  _gsasl_securid_client_start 2 7 15 ../../lib/securid/client.c
  _gsasl_digest_md5_server_finish 2 7 14 ../../lib/digest-md5/server.c
  _gsasl_digest_md5_client_finish 2 7 14 ../../lib/digest-md5/client.c
  _gsasl_saml20_client_start 2 6 13 ../../lib/saml20/client.c
  _gsasl_login_server_start 2 6 13 ../../lib/login/server.c
  _gsasl_saml20_server_start 2 6 13 ../../lib/saml20/server.c
  _gsasl_login_server_finish 2 6 12 ../../lib/login/server.c
  gsasl_decode 2 5 14 ../../lib/src/xcode.c
  gsasl_encode 2 5 14 ../../lib/src/xcode.c
  gsasl_step 2 5 14 ../../lib/src/xstep.c
  gsasl_hmac_md5 2 4 9 ../../lib/src/crypto.c
  gsasl_md5 2 4 8 ../../lib/src/crypto.c
  gsasl_property_fast 2 4 10 ../../lib/src/property.c
  gsasl_hmac_sha1 2 4 9 ../../lib/src/crypto.c
  _gsasl_saml20_server_finish 2 4 10 ../../lib/saml20/server.c
  _gsasl_saml20_client_finish 2 4 10 ../../lib/saml20/client.c
  gsasl_sha1 2 4 8 ../../lib/src/crypto.c
  sha1_hex_to_byte 2 4 10 ../../lib/scram/client.c
  _gsasl_login_client_finish 2 4 10 ../../lib/login/client.c
  gsasl_property_set 2 2 6 ../../lib/src/property.c
  _gsasl_scram_sha1_server_finish 2 15 22 ../../lib/scram/server.c
  _gsasl_scram_sha1_client_finish 2 11 18 ../../lib/scram/client.c
  _gsasl_gssapi_client_start 2 10 18 ../../lib/gssapi/client.c
  digest_md5_free_response 1 7 12 ../../lib/digest-md5/free.c
  scram_free_client_first 1 5 10 ../../lib/scram/tokens.c
  scram_free_client_final 1 4 9 ../../lib/scram/tokens.c
  scram_free_server_first 1 3 8 ../../lib/scram/tokens.c
  digest_md5_qops2qopstr 1 2 16 ../../lib/digest-md5/qop.c
  scram_free_server_final 1 2 7 ../../lib/scram/tokens.c
  _gsasl_ntlm_client_finish 1 2 7 ../../lib/ntlm/ntlm.c
  _gsasl_securid_client_finish 1 2 7 ../../lib/securid/client.c
  _gsasl_cram_md5_server_finish 1 2 7 ../../lib/cram-md5/server.c
  gsasl_server_mechlist 1 1 6 ../../lib/src/listmech.c
  gsasl_client_mechlist 1 1 6 ../../lib/src/listmech.c
  gsasl_server_support_p 1 1 5 ../../lib/src/supportp.c
  digest_md5_free_finish 1 1 5 ../../lib/digest-md5/free.c
  gsasl_random 1 1 5 ../../lib/src/crypto.c
  gsasl_client_support_p 1 1 5 ../../lib/src/supportp.c
  gsasl_callback_set 1 1 5 ../../lib/src/callback.c
  gsasl_free 1 1 5 ../../lib/src/free.c
  gsasl_nonce 1 1 5 ../../lib/src/crypto.c
  to_uchar 1 1 5 ../../lib/digest-md5/nonascii.c
  gsasl_session_hook_get 1 1 5 ../../lib/src/callback.c
  gsasl_session_hook_set 1 1 5 ../../lib/src/callback.c
  gsasl_server_start 1 1 5 ../../lib/src/xstart.c
  gsasl_callback_hook_get 1 1 5 ../../lib/src/callback.c
  gsasl_client_start 1 1 5 ../../lib/src/xstart.c
  _gsasl_digest_md5_hex_to_char 1 1 6 ../../lib/digest-md5/server.c
  gsasl_callback_hook_set 1 1 5 ../../lib/src/callback.c

Copyright (c) 2007, 2008 Free Software Foundation, Inc.