public static class PAMLibrary.pam_response
extends com.sun.jna.Structure
Modifier and Type | Field and Description |
---|---|
com.sun.jna.Pointer |
resp
This is really a string, but this field needs to be malloc-ed by the conversation
method, and to be freed by the caler, so I bind it to
Pointer here. |
int |
resp_retcode |
static int |
SIZE |
Constructor and Description |
---|
pam_response() |
pam_response(com.sun.jna.Pointer src)
Attach to the memory region pointed by the given memory.
|
Modifier and Type | Method and Description |
---|---|
protected List |
getFieldOrder() |
void |
setResp(String msg)
Sets the response code.
|
allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, calculateSize, clear, createFieldsOrder, createFieldsOrder, createFieldsOrder, createFieldsOrder, dataEquals, dataEquals, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setFieldOrder, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField, writeField
public com.sun.jna.Pointer resp
Pointer
here.
The man page doesn't say that, but see
http://www.netbsd.org/docs/guide/en/chap-pam.html#pam-sample-conv
This behavior is confirmed with a test, too; if I don't do strdup,
libpam crashes.public int resp_retcode
public static final int SIZE
Copyright © 2018. All rights reserved.