OSI/MHS Management Programming Manual
Examples
OSI/MHS Management Programming Manual—424824-001
C-44
Example in C
 (short *)&zmhs_map_passw,
 (char *)&passw);
 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_old_passw,
 (char *)&old_passw);
 if (error)
 {
 printf ("SSGET procedure error - %d\n", error);
 send_password_response (PASSW_ERROR_RSP, NULL);
 return;
 }
 if (!error)
 {
 error = alter_mspwtabl_row_passw (&appl_name,
 &passw,
 &old_passw,
 &passw_updated);
 if (error)
 {
 printf ("SQL Error updating MSPWTABL row password - %d\n", error);
 }
 }
 if (!error &&
 passw_updated)
 {
 send_password_response (PASSW_OK_RSP, NULL);
 return;
 }
 else
 {
 send_password_response (PASSW_ERROR_RSP, NULL);
 return;
 }
} /* end process_ms_register_appl */
/***************************************************************************/
/* Function: validate_mta_request */
/* Usage : error = validate_mta_request (passw_command, */
/* local_mta_name, */
/* remote_mta_name, */
/* req_passw_in, */
/* rsp_passw_out, */
/* req_valid) */
/* Parameters: passw_command INPUT */
/* local_mta_name INPUT */
/* remote_mta_name INPUT */
/* req_passw_in INPUT */
/* rsp_passw_out OUTPUT */
/* req_valid OUTPUT */
/*-------------------------------------------------------------------------*/
/* Validate an MTA BIND request. Use the local MTA name and the remote MTA */
/* name to select a row from the MTPWTABL table. For INDICATION and */
/* CONFIRM, validate the password in the req_passw parameter. For REQUEST */
/* and RESPONSE, take the appropriate password from the row and return it */
/* in the rsp_passw parameter. If everything is OK, set the req_valid */
/* parameter to TRUE, else set it to FALSE. */










