Lots of random changes.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1107 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
		
							
								
								
									
										18
									
								
								kuser/kfoo.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								kuser/kfoo.c
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,18 @@ | ||||
| #include <krb5.h> | ||||
|  | ||||
| main(int argc, char **argv) | ||||
| { | ||||
|     int ret; | ||||
|     krb5_context context; | ||||
|     krb5_ccache cache; | ||||
|     krb5_creds in, *out; | ||||
|     krb5_init_context(&context); | ||||
|     krb5_cc_default(context, &cache); | ||||
|     memset(&in, 0, sizeof(in)); | ||||
|     krb5_cc_get_principal(context, cache, &in.client); | ||||
|     krb5_parse_name(context, "hosts/farbrorn@pdc.kth.se", &in.server); | ||||
|     in.times.endtime = time(NULL) + 4711; | ||||
|     ret = krb5_get_credentials(context, 0, cache, &in, &out); | ||||
|      | ||||
|     printf("%d\n", ret); | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 Johan Danielsson
					Johan Danielsson