credential.h 410 Bytes
#ifndef __CREDENTIAL_H__
#define __CREDENTIAL_H__

#include <sys/types.h>

#include "class.h"

#define CRED_PWD(c)		(((c)->cred).pwd)

typedef enum e_CredentialType {
	CRED_PASSWORD = 0
} CredentialType;


CLASS(Credential) {
	CredentialType type;

	union {

		struct {
			char * user;
			size_t nuser;
			char * pass;
			size_t npass;
		} pwd;

	} cred;
};

#endif // __CREDENTIAL_H__

// vim: set ts=4 sw=4: