/* * Copyright 2004, Perforce Software. All rights reserved. * * This file is part of Perforce - the FAST SCM System. */ /* * ticket.h - get/set tickets in local ticketfile. * * Public methods: * * Ticket::GetTicket() - get a stored ticket from the ticketfile * Ticket::ReplaceTicket() - change stored ticket value * Ticket::DeleteTicket() - remove stored ticket value * Ticket::List() - list all current tickets * Ticket::List() - list current tickets of a specific user */ class FileSys; class TicketTable; class Ticket { public: Ticket( const StrPtr *path ); ~Ticket(); char *GetTicket( StrPtr &port, StrPtr &user ); void ReplaceTicket( const StrPtr &port, StrPtr &user, StrPtr &ticket, Error *e ) { UpdateTicket( port, user, ticket, 0, e ); } void DeleteTicket( const StrPtr &port, StrPtr &user, Error *e ) { UpdateTicket( port, user, user, 1, e ); } void List( StrBuf & ); void ListUser( const StrPtr &, StrBuf & ); private: int Init( ); void ReadTicketFile( Error *e ); void WriteTicketFile( Error *e ); void UpdateTicket( const StrPtr &port, StrPtr &user, StrPtr &ticket, int remove, Error *e ); TicketTable *ticketTab; FileSys *ticketFile; const StrPtr *path; };
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 16817 | christoph_leithner | "Forking branch Main of perforce-software-piper to christoph_leithner-piper." | ||
//guest/perforce_software/piper/main/mac/R2.0/Perforce/p4api/Headers/ticket.h | |||||
#1 | 16507 | perforce_software | Move to main branch. | ||
//guest/perforce_software/piper/mac/R2.0/Perforce/p4api/Headers/ticket.h | |||||
#1 | 13626 | alan_petersen | Copying using piper_mac_main2r2.0 | ||
//guest/perforce_software/piper/mac/main/Perforce/p4api/Headers/ticket.h | |||||
#1 | 13625 | alan_petersen |
UPDATE: - updated p4api to p4api-2015.1.1054991 - included in OpenSSL 1.0.2a ssl and crypto libraries The benefit of these are that Piper now supports connecting to 15.1 servers, and also supports ssl: connections. Woo hoo! |