Gastric juice is secreted by the inner lining of the stomach. It is highly acidic and contains water, hydrochloric acid ( HCL ) and pepsin. Hydrochloric acid serves two functions- It kills any germs which may have entered along with food and it converts pepsinogen to pepsin. Pepsin digests protein into peptides.