OSI/MHS Management Programming Manual

Examples
OSI/MHS Management Programming Manual424824-001
C-40
Example in C
{
printf ("SSGET procedure error - %d\n", error);
send_password_response (PASSW_ERROR_RSP, NULL);
return;
}
error = SSGET (req_buf_s,
(short *)&zmhs_map_passw,
(char *)&passw);
if (error == TKN_NOT_PRESENT_ERROR)
{
error = 0;
passw.zlength = -1;
}
if (error)
{
printf ("SSGET procedure error - %d\n", error);
send_password_response (PASSW_ERROR_RSP, NULL);
return;
}
error = SSGET (req_buf_s,
(short *)&zmhs_map_appl_orname,
(char *)&appl_orname);
if (error)
{
printf ("SSGET procedure error - %d\n", error);
send_password_response (PASSW_ERROR_RSP, NULL);
return;
}
/* If OSI address is not present, set the zlength fields to -1
* This is used to indicate to alter_ms_pwtabl_row that these
* fields are not present
*/
error = SSGET (req_buf_s,
(short *)&zmhs_map_ua_osi_address,
(char *)&ua_osi_address);
if (error == TKN_NOT_PRESENT_ERROR)
{
error = 0;
ua_osi_address.zpselector.zlength = -1;
ua_osi_address.zsselector.zlength = -1;
ua_osi_address.ztselector.zlength = -1;
ua_osi_address.znsap.zlength = -1;
}
if (error)
{
printf ("SSGET procedure error - %d\n", error);
send_password_response (PASSW_ERROR_RSP, NULL);
return;
}
if (!error)
{
error = alter_mspwtabl_row (&appl_name,
&passw,
&appl_orname,
&ua_osi_address);
if (error)
{
printf ("SQL Error altering MSPWTABL row - %d\n", error);
}
}