tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Memory fault (Coredump) with pswd validation program
@ 2001-05-29 11:22 jasper Hoon
  0 siblings, 0 replies; only message in thread
From: jasper Hoon @ 2001-05-29 11:22 UTC (permalink / raw)
  To: tru64-unix-managers

Hi all,

When I run the following password validation program, I get a Memory
fault (Coredump). It compiles cleanly.
We use C2 on Tru64 V4.0f
Any idea why...please.??
===============
program: chpa.c
===============
#include <stdio.h>
#include <stdlib.h>
#include <prot.h>
#include <sia.h>
#include <siad.h>
main (user, pass)
char *user;
char *pass;
{
      int auth_status;
      int myargc;
      char *myargv[2];

      myargc = 1;
      myargv[0] = "chkpass";
      myargv[1] = NULL;

auth_status=sia_validate_user(NULL,myargc,myargv,NULL,user,NULL,0,NULL
,
pass);

      if( auth_status != SIASUCCESS){
              printf("wrong password \n");
              return(1);
      }
      printf("right password \n");
      return 0;
}
/*  compile with: cc chpa.c -lsecurity -o chpa
=====================
Many thanks!!
________________________________________________________________
Mid-year intake! Enrol NOW & stand a chance to win 25% discount
http://www.milpark.co.za

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-05-29 11:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-29 11:22 Memory fault (Coredump) with pswd validation program jasper Hoon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox