- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- gss_import_name ( libgss ) works well with 32 bit ...
Operating System - HP-UX
1753878
Members
7076
Online
108809
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2004 09:47 PM
07-20-2004 09:47 PM
gss_import_name ( libgss ) works well with 32 bit HP-C compiler but 64 bit fails
Hello all,
I wrote a C program that uses gss_import_name function from the libgss library.
[code]
#include
#include
#ifndef HAVE_GSS_C_NT_HOSTBASED_SERVICE
extern gss_OID gss_nt_service_name;
#define GSS_C_NT_HOSTBASED_SERVICE gss_nt_service_name
#endif
main()
{
signed char *domain_value=(signed char*)"cyrus@krishna.kovaiteam.com";
gss_name_t p;
OM_uint32 min_stat=0,maj_stat;
gss_name_t value;
struct gss_buffer_desc_struct name_token;
name_token.value=domain_value;
name_token.length=strlen(domain_value);
maj_stat=gss_import_name(&min_stat,&name_token,GSS_C_NT_HOSTBASED_SERVICE,&p);
switch(maj_stat)
{
case GSS_S_COMPLETE:
printf("\nSuccess\n");
break;
case GSS_S_BAD_NAMETYPE:
printf("\nGSS_S_BAD_NAMETYPE\n");
break;
case GSS_S_BAD_NAME:
printf("\nGSS_S_BAD_NAME\n");
break;
case GSS_S_BAD_MECH:
printf("\nGSS_S_BAD_MECH\n");
break;
case GSS_S_FAILURE:
printf("\nGSS_S_FAILURE\n");
break;
}
if (GSS_ERROR(maj_stat))
{
fprintf(stderr,"ERROR %lu %lu \n",maj_stat>>24,min_stat);
fprintf(stderr,"A required input parameter could not be read GSS_S_CALL_INACCESSIBLE_READ\n");
}
}
[/code]
When I compiled this program with HP-C Compiler on HP-UX 11.11, I am getting success for 32 bit. But for 64 bit, this is causing a failure. Can anyone here explain me where the problem is ?
Here goes the output
# cc +DA1.1 -lgss gss_api.c
# ./a.out
Success
# cc +DA2.0W -lgss gss_api.c
# ./a.out
ERROR 1 0
A required input parameter could not be read GSS_S_CALL_INACCESSIBLE_READ
Thanks in advance,
Murugesan
I wrote a C program that uses gss_import_name function from the libgss library.
[code]
#include
#include
#ifndef HAVE_GSS_C_NT_HOSTBASED_SERVICE
extern gss_OID gss_nt_service_name;
#define GSS_C_NT_HOSTBASED_SERVICE gss_nt_service_name
#endif
main()
{
signed char *domain_value=(signed char*)"cyrus@krishna.kovaiteam.com";
gss_name_t p;
OM_uint32 min_stat=0,maj_stat;
gss_name_t value;
struct gss_buffer_desc_struct name_token;
name_token.value=domain_value;
name_token.length=strlen(domain_value);
maj_stat=gss_import_name(&min_stat,&name_token,GSS_C_NT_HOSTBASED_SERVICE,&p);
switch(maj_stat)
{
case GSS_S_COMPLETE:
printf("\nSuccess\n");
break;
case GSS_S_BAD_NAMETYPE:
printf("\nGSS_S_BAD_NAMETYPE\n");
break;
case GSS_S_BAD_NAME:
printf("\nGSS_S_BAD_NAME\n");
break;
case GSS_S_BAD_MECH:
printf("\nGSS_S_BAD_MECH\n");
break;
case GSS_S_FAILURE:
printf("\nGSS_S_FAILURE\n");
break;
}
if (GSS_ERROR(maj_stat))
{
fprintf(stderr,"ERROR %lu %lu \n",maj_stat>>24,min_stat);
fprintf(stderr,"A required input parameter could not be read GSS_S_CALL_INACCESSIBLE_READ\n");
}
}
[/code]
When I compiled this program with HP-C Compiler on HP-UX 11.11, I am getting success for 32 bit. But for 64 bit, this is causing a failure. Can anyone here explain me where the problem is ?
Here goes the output
# cc +DA1.1 -lgss gss_api.c
# ./a.out
Success
# cc +DA2.0W -lgss gss_api.c
# ./a.out
ERROR 1 0
A required input parameter could not be read GSS_S_CALL_INACCESSIBLE_READ
Thanks in advance,
Murugesan
- Tags:
- libgss
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2004 03:52 AM
12-23-2004 03:52 AM
Re: gss_import_name ( libgss ) works well with 32 bit HP-C compiler but 64 bit fails
If you do a chatr on your 64-bit executable, is it picking up /usr/lib/libgss.sl OR /usr/lib/pa20_64/libgss.sl
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP