tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: jasper Hoon <jasperhoon () webmail ! co ! za>
To: tru64-unix-managers
Subject: Memory fault (Coredump) with pswd validation program
Date: Tue, 29 May 2001 11:22:31 +0000	[thread overview]
Message-ID: <102653647622153.tru64-unix-managers.marc@archive.invalid> (raw)

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

                 reply	other threads:[~2001-05-29 11:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

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