* Get OSP token * param msg SIP message * param ignore1 * param ignore2 * return MODULE_RETURNCODE_TRUE success, MODULE_RETURNCODE_FALSE failure */
| 48 | * return MODULE_RETURNCODE_TRUE success, MODULE_RETURNCODE_FALSE failure |
| 49 | */ |
| 50 | int ospCheckHeader( |
| 51 | struct sip_msg* msg, |
| 52 | char* ignore1, |
| 53 | char* ignore2) |
| 54 | { |
| 55 | unsigned char buffer[OSP_TOKENBUF_SIZE]; |
| 56 | unsigned int bufsize = sizeof(buffer); |
| 57 | |
| 58 | if (ospGetOspToken(msg, buffer, &bufsize) != 0) { |
| 59 | return MODULE_RETURNCODE_FALSE; |
| 60 | } else { |
| 61 | return MODULE_RETURNCODE_TRUE; |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | /* |
| 66 | * Validate OSP token |
nothing calls this directly
no test coverage detected