add disable btmm support
This commit is contained in:
		
							
								
								
									
										17
									
								
								kdc/pkinit.c
									
									
									
									
									
								
							
							
						
						
									
										17
									
								
								kdc/pkinit.c
									
									
									
									
									
								
							@@ -3,6 +3,8 @@
 | 
				
			|||||||
 * (Royal Institute of Technology, Stockholm, Sweden).
 | 
					 * (Royal Institute of Technology, Stockholm, Sweden).
 | 
				
			||||||
 * All rights reserved.
 | 
					 * All rights reserved.
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 | 
					 * Portions Copyright (c) 2009 Apple Inc. All rights reserved.
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 * Redistribution and use in source and binary forms, with or without
 | 
					 * Redistribution and use in source and binary forms, with or without
 | 
				
			||||||
 * modification, are permitted provided that the following conditions
 | 
					 * modification, are permitted provided that the following conditions
 | 
				
			||||||
 * are met:
 | 
					 * are met:
 | 
				
			||||||
@@ -1379,7 +1381,22 @@ _kdc_pk_mk_pa_reply(krb5_context context,
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#define use_btmm_with_enckey 0
 | 
				
			||||||
 | 
						if (use_btmm_with_enckey && rep.element == choice_PA_PK_AS_REP_encKeyPack) {
 | 
				
			||||||
 | 
						    PA_PK_AS_REP_BTMM btmm;
 | 
				
			||||||
 | 
						    heim_any any;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						    any.data = rep.u.encKeyPack.data;
 | 
				
			||||||
 | 
						    any.length = rep.u.encKeyPack.length;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						    btmm.dhSignedData = NULL;
 | 
				
			||||||
 | 
						    btmm.encKeyPack = &any;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						    ASN1_MALLOC_ENCODE(PA_PK_AS_REP_BTMM, buf, len, &btmm, &size, ret);
 | 
				
			||||||
 | 
						} else {
 | 
				
			||||||
	    ASN1_MALLOC_ENCODE(PA_PK_AS_REP, buf, len, &rep, &size, ret);
 | 
						    ASN1_MALLOC_ENCODE(PA_PK_AS_REP, buf, len, &rep, &size, ret);
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	free_PA_PK_AS_REP(&rep);
 | 
						free_PA_PK_AS_REP(&rep);
 | 
				
			||||||
	if (ret) {
 | 
						if (ret) {
 | 
				
			||||||
	    krb5_set_error_message(context, ret,
 | 
						    krb5_set_error_message(context, ret,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user